我试图在用户每次打开下拉框时清除已选择的选项。
目前,当我选择一个选项并再次打开下拉框时,之前选择的选项仍然保持选中状态。
我已将nullable属性更改为true,但这并没有起作用。
以下是代码:https://codesandbox.io/s/clever-chaum-94xsng?file=/src/FilterDropdown.js
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号