Skip to content

Commit ce7f4c4

Browse files
committed
add explanatory comment
1 parent b8d2c91 commit ce7f4c4

File tree

1 file changed

+3
-0
lines changed
  • packages/svelte/src/internal/client/dom/elements/bindings

1 file changed

+3
-0
lines changed

packages/svelte/src/internal/client/dom/elements/bindings/input.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ export function bind_value(input, get, set = get) {
3636
batches.add(current_batch);
3737
}
3838

39+
// Because `{#each ...}` blocks work by updating sources inside the flush,
40+
// we need to wait a tick before checking to see if we should forcibly
41+
// update the input and reset the selection state
3942
await tick();
4043

4144
// In runes mode, respect any validation in accessors (doesn't apply in legacy mode,

0 commit comments

Comments
 (0)