fis-component 0.0.89 → 0.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -73708,13 +73708,15 @@ const FISSelect = React.forwardRef(({ className, style, size = "md", options, va
|
|
|
73708
73708
|
else {
|
|
73709
73709
|
if (values.length > 0) {
|
|
73710
73710
|
onChange(values[0]);
|
|
73711
|
-
|
|
73711
|
+
// Delay closing to ensure react-hook-form processes the change first
|
|
73712
|
+
setTimeout(() => setIsOpen(false), 0);
|
|
73712
73713
|
}
|
|
73713
73714
|
}
|
|
73714
73715
|
}, [multi, onChange]);
|
|
73715
73716
|
const handleMenuClick = React.useCallback(() => {
|
|
73716
73717
|
if (!multi) {
|
|
73717
|
-
|
|
73718
|
+
// Delay closing to ensure react-hook-form processes the change first
|
|
73719
|
+
setTimeout(() => setIsOpen(false), 0);
|
|
73718
73720
|
}
|
|
73719
73721
|
}, [multi]);
|
|
73720
73722
|
const menuProps = React.useMemo(() => ({
|