Skip to content

Commit

Permalink
check asyncFilter on blur (closes #3194)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed May 15, 2024
1 parent 6ce0613 commit 12e9432
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/js/phoenix_live_view/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ let DOM = {

case "blur":
if(this.once(el, "debounce-blur")){
el.addEventListener("blur", () => callback())
el.addEventListener("blur", () => {
if(asyncFilter()){ callback() }
})
}
return

Expand Down

0 comments on commit 12e9432

Please sign in to comment.