Skip to content

Commit

Permalink
always emit event on blur, even if throttled (phoenixframework#2318) (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE authored Jan 24, 2024
1 parent 859281c commit 55d50ef
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 55d50ef

Please sign in to comment.