Closed yizen closed 5 years ago
To be honest I tried, but I can't get it to work. There must have been a bug introduced, or I can't grasp what is not working :/
My understanding is that v-on on slot was never very well supported. There is a discussion about it here : https://github.com/vuejs/vue/issues/4781
This doesn't seem to be an issue. I have made a click handler and it didn't work either. Maybe there is an issue with passing arrow functions in a template? Frankly, I have no idea how to debug it 😕
We ran into the same issue today with vue 2.6.3. It doesn't seem to be an issue with the slots. The slots are not yet deprecated from v2.6. After some debugging we found out that v-click-outside is called right after the this.toggle() preventing the Emoji picker to show. using e.stopPropagation(); in your click handler should prevent this behaviour.
I can confirm, that it's two things, that need to be changed:
.stop
modifier is required (but I have no clue why)Thanks for the feedback, here is the corrected CodePen for future reference :
https://codepen.io/Yizen/pen/wNYPVx
@click="clickEvent"
should be corrected for Vue > 2.6 to :
@click.stop="clickEvent"
thanks, I noticed this error too when I update my vue project to 2.6+.
Would like to ask how do you guys debug for this ? Would like to know how can I think like you guys in order to debug some similar case in future.
thanks @Yizen, @DCzajkowski and @timroosen
Hi,
I have run into an issue updating to Vue 2.6 : the events are not being passed to the EmojiPicker.
In 2.6, scoped slots have been reworked, and slot-scope has been deprecated.
https://vuejs.org/v2/guide/components-slots.html#Scoped-Slots
This pen demonstrate it :
https://codepen.io/Yizen/pen/VgrbJO
It is basically the exact clone of your pen, but with Vue upgraded to 2.6
Thank you for this component, and any help you can provide.