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

Declare inputType value of increating/decreasing its value with key operation and pressing spin buttons #88

Open
masayuki-nakano opened this issue Nov 13, 2018 · 1 comment

Comments

@masayuki-nakano
Copy link

<input type="number"> is a special form control for InputEvent. Currently, InputEvent interface is declared as used for text input controls. <input type="number"> typically has editor but also has spin buttons and they are usable with ArrowDown key and ArrowUp key. Now, all browsers which support InputEvent dispatch input events with Event interface. And nobody dispatches beforeinput event for these operations.

I believe that input event should be dispatched with InputEvent interface, and beforeinput event should be dispatched as cancelable event. Additionally, the inputType value should be defined (perhaps, insertReplacementText? Because the value comes from built-in UI like autocomplete.

@rniwa
Copy link

rniwa commented Nov 13, 2018

This is an interesting point given we're discussing a similar feature / input type for AOM: https://wicg.github.io/aom/spec/input-events.html#type-action-increment

@alice @cookiecrook @hobor @whsieh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants