Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

onBlur() event #9

Open
Shaker-Hamdi opened this issue Apr 26, 2020 · 1 comment
Open

onBlur() event #9

Shaker-Hamdi opened this issue Apr 26, 2020 · 1 comment

Comments

@Shaker-Hamdi
Copy link

Hello.

Very nice package. It is almost what I need. I just want to say it would be nice to have an "onBlur()" event to setFiledTouched on that event.

I'm using Formik and Yup, and I need to validate the input onBlur, but right now Formik can't detect if the input is touched or not, and trying to set it manually via "onBlur" didn't work, at least in my case using Typescript, it gave me this error ...

Type '{ tags: any; onChange: (tags: Tags) => void; onBlur: () => void; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactTagInput> & Readonly<ReactTagInputProps> & Readonly<...>'.

So it would be nice to have that event.

Thank you.

@KarlMaresch
Copy link

@Shaker-Hamdi possibly relates to this pull reqest #8 for having that functionality

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

2 participants