stream-chat-react
stream-chat-react copied to clipboard
feat: allow EmojiPicker to be closed on emoji click
Submit a pull request
🎯 Goal
- Some chat applications that uses the EmojiPicker needs the emoji picker to be closed once an emoji is selected
- The component EmojiPicker allows multiple props available but it doesn't allow to configure this behaviour
🛠 Implementation details
- New boolean property
closeOnEmojiClickonEmojiPicker.tsx - When the event
onEmojiSelectis received from@emoji-mart/react, the property is checked, unmounting the picker container
Hey, @AlbertFX91, thank you for your contribution! I think the change makes sense so we can merge as soon as the naming is consistent with the internal props. 👍
Thanks @arnautov-anton ! naming updated 🚀
:tada: This PR is included in version 11.13.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket: