Skip to content

Commit

Permalink
always emit event on blur, even if throttled (phoenixframework#2318)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed Jan 20, 2024
1 parent 9387b36 commit 01f536c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/js/phoenix_live_view/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@ let DOM = {
})
}
if(this.once(el, "bind-debounce")){
el.addEventListener("blur", () => this.triggerCycle(el, DEBOUNCE_TRIGGER))
el.addEventListener("blur", () => {
// always trigger callback on blur
callback()
})
}
}
},
Expand Down

0 comments on commit 01f536c

Please sign in to comment.