stream-chat-react icon indicating copy to clipboard operation
stream-chat-react copied to clipboard

feat: allow EmojiPicker to be closed on emoji click

Open AlbertFX91 opened this issue 1 year ago • 1 comments

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 closeOnEmojiClick on EmojiPicker.tsx
  • When the event onEmojiSelect is received from @emoji-mart/react, the property is checked, unmounting the picker container

AlbertFX91 avatar Mar 21 '24 15:03 AlbertFX91

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. 👍

arnautov-anton avatar Mar 22 '24 12:03 arnautov-anton

Thanks @arnautov-anton ! naming updated 🚀

AlbertFX91 avatar Mar 25 '24 11:03 AlbertFX91

:tada: This PR is included in version 11.13.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

stream-ci-bot avatar Mar 29 '24 10:03 stream-ci-bot