emoji-picker-react icon indicating copy to clipboard operation
emoji-picker-react copied to clipboard

Close picker back to reactions view after emoji selection

Open Timmwardion opened this issue 11 months ago • 4 comments

Is there a way to close the picker back to the emoji view after an emoji has been selected? I've tried using the open prop, and playing around with the reactionsDefaultOpen prop, but no luck.

Would be great if I could trigger as part of the onEmojiClick callback.

Timmwardion avatar Mar 19 '24 05:03 Timmwardion

Hey @Timmwardion thanks for the interest in this feature. So far I did not add this capability simply because I am not sure what would the correct experience be UI-wise. I can provide an imperative API for retracting the picker to its reactions mode so you can do this with a function call, but I am simply not sure where best to put the "x" (???) button to let the user close it.

If you have an idea, I would love to hear your suggestion.

ealush avatar Mar 22 '24 04:03 ealush

Hey @ealush!

I'm writing a chat application and am hoping to use reactions to give users a fast way of selecting their most used emoji. If they need one that's not on the reactions list I'd love them to be able to pick from the picker.

They only need to pick one at a time, so once one is selected, the picker just needs to close back to the reactions view. No x button needed I don't think.

I think an imperative API sounds like a perfect solution actually. That's much more flexible for my needs.

Timmwardion avatar Mar 22 '24 05:03 Timmwardion

is there a way to close it as of this day ?

Dxuian avatar Jun 04 '24 22:06 Dxuian

Iam also interested

komagroup avatar Jul 13 '24 08:07 komagroup