Open
Description
Describe the bug
In the event listener of input event of select which bind to store value, if the value of the same store but different property was changed, the bind itself doesn't work at all.
- Create a store with object: i.e.
const s = writable({a:0, b: 0})
- Create a
<select>
element withbind:value={$s.a}
andon:input={()=>$s.b++}
. - Change select element's value. It won't change the
$s.a
Reproduction
https://svelte.dev/repl/6520010283474705a76372d5a2569e16?version=3.49.0
Logs
No response
System Info
System:
OS: macOS 12.5
CPU: (20) arm64 Apple M1 Ultra
Memory: 46.50 GB / 128.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
Yarn: 1.22.18 - ~/.nvm/versions/node/v16.14.2/bin/yarn
npm: 8.9.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
Browsers:
Chrome: 103.0.5060.134
Safari: 15.6
Severity
annoyance