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

Adding an onClose event #188

Closed
yliharma opened this issue Mar 24, 2021 · 2 comments
Closed

Adding an onClose event #188

yliharma opened this issue Mar 24, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@yliharma
Copy link

The input field in my use case is initially hidden and its visibility is triggered with a button.
When I do a research and then click outside the input, the result list is removed but I don't know how to reset the input to its initial hidden state.

It would be perfect if the closeAllLists function dispatched an event that one could catch.

import { closeAllLists } from "./listController";
@yliharma yliharma added the enhancement New feature or request label Mar 24, 2021
@TarekRaafat
Copy link
Owner

Hello @yliharma,

Good one, I'll make sure to include a solution for your use case in the coming version since it makes a lot of sense.

Cheers, and have a nice day! :)

@TarekRaafat
Copy link
Owner

close event has been added to v9.0 check the docs for details.

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

No branches or pull requests

2 participants