JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.44k stars 4.1k forks source link

Chrome autofill behavior #5828

Open morozovamv opened 7 months ago

morozovamv commented 7 months ago

Discussed in https://github.com/JedWatson/react-select/discussions/5757

Originally posted by **morozovamv** September 22, 2023 Hi! I have a question about how the select behaves when I use a value from the Chrome autofill form. Imagine I have a form (email/name/country) image When I click on the email input, chrome suggests to fill the form image I select an option from the chrome menu, it adds all the data. And at that moment the country select is open, which I expected to be closed. image Is there an option not to open the select if it was controlled by chrome? You can find an example here: https://react-ts-ib9kjq.stackblitz.io/ And the code is here: https://stackblitz.com/edit/react-ts-ib9kjq?file=index.tsx