Side navigation
#10971 closed feature (duplicate)
Opened December 07, 2011 11:15AM UTC
Closed December 07, 2011 05:04PM UTC
Last modified December 07, 2011 05:04PM UTC
Support for "input" event in textfield
Reported by: | benjamin.chevillon.mma@gmail.com | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | event | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I think a .onInputChange method would be useful to detect the change of a text input.
As it can be shown here http://jsfiddle.net/BenChe/T3mkt/, the modern browser supports the "input" event which is fired when a textfield is changed (nevermind the way it is changed : key, click on old values, copy/paste, etc.) and the event is fired as soon as the value is changed. It does not wait to lose the focus.
I think it would be great if a .onInputChange method bind to the "input" event on browser that support it, and use a timer on old browser.
Regards, Thanks,
Benjamin Chevillon
Attachments (0)
Change History (3)
Changed December 07, 2011 11:42AM UTC by comment:1
component: | unfiled → event |
---|---|
keywords: | → 1.8-discuss |
priority: | undecided → low |
status: | new → open |
Changed December 07, 2011 05:04PM UTC by comment:2
keywords: | 1.8-discuss |
---|---|
resolution: | → duplicate |
status: | open → closed |
This was already voted down in 1.7.
This will most likely not make it into core because:
This would be better suited as a plugin or a polyfill, but I'll add it as a 1.8 feature request, so it can be voted on.
input event spec.