shadcn-vue
shadcn-vue copied to clipboard
[Bug]: NumberField does not change the value on enter (triggers form submit keeping the previews value)
Reproduction
https://codesandbox.io/p/devbox/shadcn-vue-numberfieldform-forked-m5yrgq
Describe the bug
On the page https://www.shadcn-vue.com/docs/components/number-field.html
In the last example, if you change the number and press the enter key without doing any kind of blur, the form submits the value, but the value change is not reflected.
System Info
System:
OS: macOS 14.6.1
CPU: (12) arm64 Apple M3 Pro
Memory: 74.47 MB / 18.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.20.4 - ~/.nvm/versions/node/v18.20.4/bin/node
npm: 10.7.0 - ~/.nvm/versions/node/v18.20.4/bin/npm
Browsers:
Brave Browser: 127.1.68.141
Chrome Canary: 131.0.6726.0
Edge: 128.0.2739.79
Safari: 17.6
Contributes
- [ ] I am willing to submit a PR to fix this issue
- [ ] I am willing to submit a PR with failing tests