Possible to get text, number, and other element inputs to handle an `oninput` events?
I see its probably possible to Frankenstein basic oninput
behavior with an Auto Complete element to create things like text or number input fields where I need to control the patterns and values dynamically as users type. However, it would be wonderful if there was a built-in option for an oninput
event as opposed to just a change
event.
Am I missing something or any chance these options are considered in the future?
-
Hi Alan Clack ,
What you're describing would be quite an intricate customization of the behaviour of the elements. We don't tend to expose that level of detail. Generally, form elements fire a change event when the field loses focus which is when we consider the user's changes to be “done”. There are a few exceptions like the slider controls because we got feedback that people wanted to be able to have immediate feedback while dragging.
For the kind of thing you're thinking, it might be worth looking into writing a custom form element.
0
Please sign in to leave a comment.
Comments
1 comment