-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Y.Button can render as non-submit #968
Conversation
See HISTORY.md for full explanation
As I mentioned in #973, |
I think I have tried to work with this issue before. I remember encountering an issue where IE would not allow me to change the type of a button after it was already rendered, but I was not able to get that to happen anymore today in IE8, 9, and 10. |
Maybe we should make the |
Hi Jeroen, I spent some time tonight looking into this PR, and I agree with the overall approach here. Since browsers default I'll dig in a little deeper into this and your other reported Button issues on Monday & Tuesday. Good stuff! And thanks for your patience while I wrapped up some other work. |
👍 |
Still working on this. While introducing a Oh, and I realized a |
While the patch included in this PR will certainly address the issue of default button types, I think #1296 is a more ideal fix that addresses the root issue. Let me know if you disagree and we can revisit this pull request. Thanks again for this contribution and bringing all the button issues to my attention. As a result, the last few releases have really helped improve Button's stability and quality. |
Closing on behalf of @derek |
Hey @derek! I just wanted to let you know I agree with the changes to Button. Good work! |
@drjayvee Thanks! |
new
Y.Button
s always render as submit buttons. That's bad. Especially for a ToggleButton inside of a form.See this stackoverflow thread, where @juandopazo commented "Yeah, that's probably a bug."
From my change to HISTORY.md:
Added type ATTR to ButtonCore to enable Button nodes to be rendered with "type" attribute
The default
type
for<button>
issubmit
, which is not always desired, especially for ToggleButton.Button
now supportssubmit
(backwards-compatible default),button
andreset
ToggleButton
is always rendered withtype="button"
This isn't done yet! IE 10 fails one test, and IE in compat mode fails even more.