mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 06:44:52 +00:00
fix: prevent New rule modal from closing when removing conditions or actions (#991)
This commit is contained in:
@@ -11,6 +11,9 @@ export default class extends Controller {
|
||||
];
|
||||
|
||||
remove(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
if (e.params.destroy) {
|
||||
this.destroyFieldTarget.value = true;
|
||||
this.element.classList.add("hidden");
|
||||
|
||||
Reference in New Issue
Block a user