Opened 11 years ago
Closed 11 years ago
#8337 closed bug (fixed)
Submit inputs don't automatically set label option.
Reported by: | Infeligo | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.button | Version: | 1.8.18 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When calling $(sel).button('option', 'label') on submit button, an empty string is returned. When calling the same on a <button>, proper label is returned.
Change History (3)
comment:1 Changed 11 years ago by
Summary: | Can't retrieve button label for submit buttons → Submit inputs don't automatically set label option. |
---|
comment:2 Changed 11 years ago by
comment:3 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Button: Corrected default label applied to submit buttons. Fixed #8337: Submit inputs don't automatically set label option.
Changeset: 1f1613852cb6116cd71a6600d737099fc2d55d2a
Note: See
TracTickets for help on using
tickets.
jquery.ui.button.js is just blindly using the innerHTML of the button upon creation. I created a pull request to use the value if the element is type input - https://github.com/jquery/jquery-ui/pull/660.