add comment

pull/15844/head
Rich Harris 2 months ago
parent b44bd67fa5
commit b82447343b

@ -65,6 +65,11 @@ export function bind_value(input, get, set = get) {
var value = get();
if (input === document.activeElement) {
// Never rewrite the contents of a focused input. We can get here if, for example,
// an update is deferred because of async work depending on the input:
//
// <input bind:value={query}>
// <p>{await find(query)}</p>
return;
}

Loading…
Cancel
Save