diff --git a/packages/standard-components/src/Input.svelte b/packages/standard-components/src/Input.svelte index 2b6a117533..2900680d6b 100644 --- a/packages/standard-components/src/Input.svelte +++ b/packages/standard-components/src/Input.svelte @@ -12,7 +12,8 @@ const onchange = ev => { if (_bb) { - _bb.setBinding("value", ev.target.value) + const val = type === "checkbox" ? ev.target.checked : ev.target.value + _bb.setBinding("value", val) } } diff --git a/packages/standard-components/src/Select.svelte b/packages/standard-components/src/Select.svelte index 23a32b23a0..4dab98c3e7 100644 --- a/packages/standard-components/src/Select.svelte +++ b/packages/standard-components/src/Select.svelte @@ -11,7 +11,7 @@ const onchange = ev => { if (_bb) { - _bb.setStateFromBinding(_bb.props.value, ev.target.value) + _bb.setBinding("value", ev.target.value) } }