missive / emoji-mart

🏪 One component to pick them all
https://missiveapp.com/open/emoji-mart
MIT License
8.67k stars 835 forks source link

blur in order to intercept lost focus event #244

Closed esoni88 closed 5 years ago

esoni88 commented 6 years ago

hi all, i need to close the picker if the picker lost focus. how can implement it ? i need onblur event

amickael commented 5 years ago

Just in case you still need this, I left a comment on a similar issue in here explaining how I did this: https://github.com/missive/emoji-mart/issues/249#issuecomment-443079971

nolanlawson commented 5 years ago

Yes, unless I'm mistaken, this can be solved outside of emoji-mart itself. Since you have access to the DOM, you can place focus/blur events wherever you like and react accordingly.