@ -7,7 +7,6 @@ import { is } from '../../../proxy.js';
import { queue _micro _task } from '../../task.js' ;
import { hydrating } from '../../hydration.js' ;
import { untrack } from '../../../runtime.js' ;
import { is _runes } from '../../../context.js' ;
import { current _batch , previous _batch } from '../../../reactivity/batch.js' ;
/ * *
@ -17,7 +16,6 @@ import { current_batch, previous_batch } from '../../../reactivity/batch.js';
* @ returns { void }
* /
export function bind _value ( input , get , set = get ) {
var runes = is _runes ( ) ;
var batches = new WeakSet ( ) ;
@ -36,21 +34,6 @@ export function bind_value(input, get, set = get) {
batches . add ( current _batch ) ;
}
// In runes mode, respect any validation in accessors (doesn't apply in legacy mode,
// because we use mutable state which ensures the render effect always runs)
if ( runes && value !== ( value = get ( ) ) ) {
var start = input . selectionStart ;
var end = input . selectionEnd ;
// the value is coerced on assignment
input . value = value ? ? '' ;
// Restore selection
if ( end !== null ) {
input . selectionStart = start ;
input . selectionEnd = Math . min ( end , input . value . length ) ;
}
}
} ) ;
if (