Skip to content

Commit

Permalink
fix array destructure in cancelSubmit
Browse files Browse the repository at this point in the history
Closes #3524
  • Loading branch information
SteffenDE committed Nov 21, 2024
1 parent 021c963 commit 09f7a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/phoenix_live_view/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ export default class View {
}

cancelSubmit(formEl, phxEvent){
this.formSubmits = this.formSubmits.filter(([el, ref, _callback]) => {
this.formSubmits = this.formSubmits.filter(([el, ref, _opts, _callback]) => {
if(el.isSameNode(formEl)){
this.undoRefs(ref, phxEvent)
return false
Expand Down

0 comments on commit 09f7a84

Please sign in to comment.