defaultIsOpen
feature does not work when combined with closeOnChangedValue
#718
Labels
bug
Something isn't working
Description the bug
defaultIsOpen
feature does not work when combined withcloseOnChangedValue
Sandbox / Git Repo
https://codesandbox.io/s/defaultisopen-and-closeonchangedvalue-q4mrsd
To Reproduce
Steps to reproduce the behavior:
defaultIsOpen={true}
closeOnChangedValue={true}
Expected behavior
The select should stay open until acted on. It opens then quickly shuts before the user can get to it.
Screenshots
![image](https://private-user-images.githubusercontent.com/1606382/282162315-640ced03-000e-4a49-8612-fff911521d69.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NjQzMjMsIm5iZiI6MTczOTU2NDAyMywicGF0aCI6Ii8xNjA2MzgyLzI4MjE2MjMxNS02NDBjZWQwMy0wMDBlLTRhNDktODYxMi1mZmY5MTE1MjFkNjkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMjAxMzQzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODI0ZWU0MDViYzMxNTJjNDQ4Y2MwOTk2OGViZjVmYzk1OWRjOTI0YTQ0OTcwMTU0M2M2NGRhMGVkMWQzMzI3MyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.NMWsP-jcK3W-738W2KQVhm0zoPTj12JS6k4d4VxJlHM)
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A
Additional context
Looks like in dropdown.tsx line 35 the useEffect closes the select on all renders including the first.
The text was updated successfully, but these errors were encountered: