Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close picker back to reactions view after emoji selection #406

Open
Timmwardion opened this issue Mar 19, 2024 · 4 comments
Open

Close picker back to reactions view after emoji selection #406

Timmwardion opened this issue Mar 19, 2024 · 4 comments

Comments

@Timmwardion
Copy link

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.

@ealush
Copy link
Owner

ealush commented Mar 22, 2024

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.

@Timmwardion
Copy link
Author

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.

@Dxuian
Copy link

Dxuian commented Jun 4, 2024

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

@komagroup
Copy link

Iam also interested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants