We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.5.13
https://stackblitz.com/edit/vitejs-vite-qzas5vub?file=src%2Fmain.jsx
{ "@tsconfig/node22": "^22.0.1", "@types/node": "^22.13.15", "@vitejs/plugin-vue": "^5.2.3", "@vitejs/plugin-vue-jsx": "^4.1.2", "@vue/tsconfig": "^0.7.0", "npm-run-all2": "^7.0.2", "prettier": "3.5.3", "sass": "^1.86.1", "typescript": "~5.8.2", "vite": "^6.2.4", "vite-plugin-vue-devtools": "^7.7.2", "vue-tsc": "^2.2.8", "vue": "^3.5.13", "vue-router": "^4.5.0" }
Trigger the function when the Enter key is pressed
Every time the button is pressed, the function will be triggered
System: OS: macOS 15.3.2 CPU: (12) x64 Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz Memory: 24.91 GB / 64.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.12.0 - ~/.node/node-v22.12.0-darwin-x64/bin/node Yarn: 1.22.22 - ~/.node/node-v22.12.0-darwin-x64/bin/yarn npm: 10.9.0 - ~/.node/node-v22.12.0-darwin-x64/bin/npm pnpm: 10.7.0 - ~/.node/node-v22.12.0-darwin-x64/bin/pnpm Browsers: Chrome: 134.0.6998.166 Safari: 18.3.1
No response
The text was updated successfully, but these errors were encountered:
The input event does not support the enter modifier, as enter is meant for keyboard events (e.g., keydown/keyup).
input
enter
keydown
keyup
Workarounds: Playground
withKeys
const Foo = () => { return <input onKeyup={withKeys(test, ['enter'])} />; };
const Bar = () => { return <input onKeyup_enter={test} />; };
Sorry, something went wrong.
No branches or pull requests
Vue version
3.5.13
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-qzas5vub?file=src%2Fmain.jsx
Steps to reproduce
{
"@tsconfig/node22": "^22.0.1",
"@types/node": "^22.13.15",
"@vitejs/plugin-vue": "^5.2.3",
"@vitejs/plugin-vue-jsx": "^4.1.2",
"@vue/tsconfig": "^0.7.0",
"npm-run-all2": "^7.0.2",
"prettier": "3.5.3",
"sass": "^1.86.1",
"typescript": "~5.8.2",
"vite": "^6.2.4",
"vite-plugin-vue-devtools": "^7.7.2",
"vue-tsc": "^2.2.8",
"vue": "^3.5.13",
"vue-router": "^4.5.0"
}
What is expected?
Trigger the function when the Enter key is pressed
What is actually happening?
Every time the button is pressed, the function will be triggered
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: