[bug]: fix <Select> to use Peregrine's "useInformedFieldStateWrapper" like other form inputs do #4381
Open
1 of 8 tasks
Labels
bug
Something isn't working
Describe the bug
In 2021, this PR was created to suppress a noisy warning from the
informed
form library:#3399
A new hook
useInformedFieldStateWrapper
was created which wraps Informed'suseFieldState
. Instances ofuseFieldState
were modified to use the new hook:See file changes: https://github.com/magento/pwa-studio/pull/3399/files
Not sure why, but
Select
form inputs in Venia UI were excluded from this change in that PR. There's no mention of why. It still usesuseFieldState
directly from Informed, which causes the same noisy warnings.To reproduce
Observed in our custom application. I don't think this happens in the Venia demo.
Adding a
<Select>
input in our footer causes these console warnings on load.Possible solutions
Fix it by using
useInformedFieldStateWrapper
inSelect
.Please let us know what packages this bug is in regards to:
venia-concept
venia-ui
pwa-buildpack
peregrine
pwa-devdocs
upward-js
upward-spec
create-pwa
The text was updated successfully, but these errors were encountered: