#7958 closed enhancement (notabug)
Button Flickers When Pressing Space on Input Elements
Reported by: | ole | Owned by: | ole |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.button | Version: | 1.8.16 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When the button() is applied to input elements, the background flickers when the space bar is pressed (The ui-state-active class is added and removed when the space bar is pressed). It would be great if it would stay in a consistent state while the user is typing. I've tested this in Chrome and Firefox. Here's a button to play with: http://jsfiddle.net/cKVB5/2/
Change History (4)
comment:1 Changed 11 years ago by
Owner: | set to ole |
---|---|
Status: | new → pending |
comment:2 Changed 11 years ago by
Status: | pending → new |
---|
I thought this was a standard use case for the button. I'm using button for just about all my form components: anchors (a), input, textarea, and of coarse buttons. The reason is simplicity. I add a button class to each component, call $(".button").button(), and call it a day :).
comment:3 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
That doesn't make any sense. Text fields aren't buttons.
comment:4 Changed 11 years ago by
Applying the button function to input and textarea elements achieves a consistent look for the entire form.
Why would you even turn a text input into a button?