Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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:


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:

Change History (4)

comment:1 Changed 11 years ago by Scott González

Owner: set to ole
Status: newpending

Why would you even turn a text input into a button?

comment:2 Changed 11 years ago by ole

Status: pendingnew

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 Scott González

Resolution: invalid
Status: newclosed

That doesn't make any sense. Text fields aren't buttons.

comment:4 Changed 11 years ago by ole

Applying the button function to input and textarea elements achieves a consistent look for the entire form.

Note: See TracTickets for help on using tickets.