-
Notifications
You must be signed in to change notification settings - Fork 27.4k
input[type=range] does not update ngModel through keyboard input (Chrome/Safari) #4554
Comments
Firefox most likely doesn't support To my knowledge, angular does not implement a directive for Hmm, I'm wrong, FF does seem to support |
Firefox does support input[type=range], on Mac at least, and Angular handles keyboard input from the Firefox control appropriately. Safari and Chrome are the problem. jsfiddle demonstrating the issue: http://jsfiddle.net/84T86/ |
After a bit more digging, it appears that Chrome/Safari range inputs do not fire |
@caitp, it's clearly bound to something. I appreciate the input, but please check the Fiddle. |
It's treated as a Since it's not readily available, perhaps you'd be interested in implementing a directive which portably handles the events emited by range sliders, as well as text inputs when they're used as a fallback |
Edit: Sorry, browser explosion before I was finished writing. I'd have to think about it for a bit. Building a rangeInputType off of numberInputType to handle keyboard controls would be a good start, but there's one strange detail. In the case where the browser fires By the looks of it, this isn't a huge issue since $setViewValue doesn't do much when called multiple times with the same arg, but it would be making an assumption that future versions of the code will work the same way. Anybody have an opinion on that? |
Just discovered this. Looks as if other issues are holding back a rangeInputType. I'll keep my eyes on open for resolution before moving forward with anything. |
When the input has focus, keyboard controls for changing value (i.e. direction keys, and possibly others) do not update the associated ngModel. Clicks work perfectly.
I'm running against Angular 1.2.0-rc.3. Both Chrome and Safari demonstrate this issue, but Firefox does not.
The text was updated successfully, but these errors were encountered: