Dropdown + Formik

UI Components for React
Post Reply
DataUndefined
Posts: 3
Joined: 05 Oct 2021, 16:17

15 Sep 2022, 18:25

When using the PrimeReact Dropdown component in a form that's under Formik control, I'm getting warnings: "Formik called 'handleBlur', but you forgot to pass an 'id' or 'name' attribute".

The input that it's referring to is the hidden input that's rendered by the Dropdown component:

<input type="text" readonly="" aria-haspopup="listbox">

Without being able to assign an id or name prop to the hidden input, how have you handled this scenario and avoided the warnings?

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

17 Sep 2022, 17:08

What version of PrimeReact? it was fixed in 8.4.0: https://github.com/primefaces/primereact/issues/2224
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests