Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Is there a way to change OnBlur so that focusing and then clicking on a chip doesn't trigger it? #362

Open
lim1017 opened this issue Feb 2, 2022 · 0 comments

Comments

@lim1017
Copy link

lim1017 commented Feb 2, 2022

I have an app where the chip inputs disappears onBlur, and is replaced with a typography component.

Currently if the chipInput is focused and I go to delete a chip the onBlur will trigger and the chipInput is replaced.
I would like to only trigger the onBlur when the user clicks outside the chipInput, and not on any of the chips

Is there a way to do this? Or do I I have to do something like use refs to detect an outside click?

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

No branches or pull requests

1 participant