material-ui-chip-input icon indicating copy to clipboard operation
material-ui-chip-input copied to clipboard

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

Open lim1017 opened this issue 3 years ago • 0 comments

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?

lim1017 avatar Feb 02 '22 04:02 lim1017