jquery-ujs
jquery-ujs copied to clipboard
Multiple submit buttons
When used with multiple submit buttons, clicking one button activates the text of all buttons - which is rarely what you want.
There are workarounds, like this one which remove the text and just disable other buttons. I wonder if there are any use cases where that doesn't make sense?
I've just run into an issue where all the buttons don't become enabled again after the ajax has finished loading the request...
Edit: obviously solution was to not disable the buttons!
I've run into this issue as well. There's another workaround here, but unfortunately it doesn't work on remote: true
forms.
Is there any interest in changing behavior so that only the clicked button changes text while others only get disabled?
It's an edge case I've ran into as well. Although, I wouldn't really call it an edge case as I think having multiple buttons in a form is relatively common. Not the majority, but not an edge - either.