app/components/coco/buttons/button/button.js in coveragebook_components-0.18.0 vs app/components/coco/buttons/button/button.js in coveragebook_components-0.18.7

- old
+ new

@@ -82,10 +82,14 @@ approveAndRun(event) { if (this.approving) { event.stopPropagation(); this.confirmed = true; - this.dropdown.trigger.click(); + if (this.dropdown.trigger.getAttribute("type") === "submit") { + this.$root.closest("form").requestSubmit(); + } else { + this.dropdown.trigger.click(); + } this.dropdown.hide(); this.confirmed = false; this.approving = false; } },