Skip to content

Commit 0357b5f

Browse files
committed
this seems to work?
1 parent 8640ca7 commit 0357b5f

File tree

1 file changed

+2
-5
lines changed
  • packages/svelte/src/internal/client/dom/elements/bindings

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import { current_batch, previous_batch } from '../../../reactivity/batch.js';
1717
* @returns {void}
1818
*/
1919
export function bind_value(input, get, set = get) {
20-
var runes = is_runes();
21-
2220
var batches = new WeakSet();
2321

2422
listen_to_event_and_reset_event(input, 'input', async (is_reset) => {
@@ -41,9 +39,8 @@ export function bind_value(input, get, set = get) {
4139
// update the input and reset the selection state
4240
await tick();
4341

44-
// In runes mode, respect any validation in accessors (doesn't apply in legacy mode,
45-
// because we use mutable state which ensures the render effect always runs)
46-
if (runes && value !== (value = get())) {
42+
// Respect any validation in accessors
43+
if (value !== (value = get())) {
4744
var start = input.selectionStart;
4845
var end = input.selectionEnd;
4946

0 commit comments

Comments
 (0)