We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e17358d commit 45c82a8Copy full SHA for 45c82a8
app/javascript/controllers/audit_duplicates_controller.js
@@ -4,6 +4,15 @@ export default class extends Controller {
4
connect() {
5
this.boundHandleSubmit = this.handleSubmit.bind(this)
6
this.element.addEventListener("submit", this.boundHandleSubmit)
7
+
8
+ // Disable Rails UJS for this form to prevent "Saving" state
9
+ this.element.removeAttribute('data-remote')
10
11
+ // Remove data-disable-with from all submit buttons
12
+ const buttons = this.element.querySelectorAll('input[type="submit"], button[type="submit"]')
13
+ buttons.forEach(button => {
14
+ button.removeAttribute('data-disable-with')
15
+ })
16
}
17
18
handleSubmit(event) {
0 commit comments