pull/16649/head
Rich Harris 2 weeks ago
parent b8473bf864
commit fb50f9fd5a

@ -88,13 +88,6 @@ export function bind_value(input, get, set = get) {
// don't set the value of the input if it's the same to allow // don't set the value of the input if it's the same to allow
// minlength to work properly // minlength to work properly
if (value !== input.value) { if (value !== input.value) {
// @ts-expect-error the value is coerced on assignment
input.value = value ?? '';
}
// 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 !== input.value) {
var start = input.selectionStart; var start = input.selectionStart;
var end = input.selectionEnd; var end = input.selectionEnd;

Loading…
Cancel
Save