Skip to content

Commit

Permalink
fix: full hide modal cover after confirm or canel operate
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Oct 18, 2024
1 parent 1b00d26 commit d958f52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/javascript/controllers/modal_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ export default class extends Controller {
this.modal.show()
}

disconnect() {
this.clear()
}

close() {
this.clear()
}

clear() {
this.modal.hide()
this.element.remove()
}
Expand Down

0 comments on commit d958f52

Please sign in to comment.