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

Need a way to programatically clear search #58

Closed
Pustaka-Digital-Media opened this issue Sep 14, 2021 · 1 comment
Closed

Need a way to programatically clear search #58

Pustaka-Digital-Media opened this issue Sep 14, 2021 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@Pustaka-Digital-Media
Copy link

Hi,

So in my app, I made it so that the user's search results get cleared once they click on the search bar again using:
onTouchStart={...}, But the problem is that the search text still stays there and the user has to manually remove the text, is there any way that I can programatically clear the search bar text, any help would be appreciated

Thanks

@WrathChaos WrathChaos self-assigned this Sep 14, 2021
@WrathChaos WrathChaos added the question Further information is requested label Sep 14, 2021
@WrathChaos
Copy link
Owner

Hello @Pustaka-Digital-Media

I haven't tried but can you try to set a ref for the dynamic search bar and then try to reach inputRef inside the library.

If you cannot, I will make a way ASAP!

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

No branches or pull requests

2 participants