Skip to content
New issue

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

bug: input event on <input type="number"> #606

Closed
ph-fritsche opened this issue Mar 22, 2021 · 1 comment · Fixed by #628
Closed

bug: input event on <input type="number"> #606

ph-fritsche opened this issue Mar 22, 2021 · 1 comment · Fixed by #628
Labels
bug Something isn't working released

Comments

@ph-fritsche
Copy link
Member

There is no input event on <input type="number"/> though, if the added character leads to a value that can not result in a valid input by typing more characters. I.e. 1ee the second e is ignored.
But this should be addressed at

if (!/[\d.\-e]/.test(keyDef.key as string)) {
return
}
const oldValue =
state.carryValue ?? getValue(element) ?? /* istanbul ignore next */ ''

Originally posted by @ph-fritsche in #583 (comment)

Also inputType: 'insertText' is missing.

@github-actions
Copy link

🎉 This issue has been resolved in version 13.0.16 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant