@mtes-mct/monitor-ui 10.16.0 → 10.16.1
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/CHANGELOG.md +7 -0
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [10.16.0](https://github.com/MTES-MCT/monitor-ui/compare/v10.15.2...v10.16.0) (2023-12-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **field:** handle disabled prop on options in Select component ([dee4b21](https://github.com/MTES-MCT/monitor-ui/commit/dee4b21f100ae0e7083797b328e5294332f4323e))
|
|
7
|
+
|
|
1
8
|
## [10.15.2](https://github.com/MTES-MCT/monitor-ui/compare/v10.15.1...v10.15.2) (2023-12-20)
|
|
2
9
|
|
|
3
10
|
|
package/index.js
CHANGED
|
@@ -69764,8 +69764,9 @@ function Select({ baseContainer, className, customSearch, customSearchMinQueryLe
|
|
|
69764
69764
|
isOpen,
|
|
69765
69765
|
disabled
|
|
69766
69766
|
]);
|
|
69767
|
-
const disabledItemValues = useMemo(()=>
|
|
69768
|
-
|
|
69767
|
+
const disabledItemValues = useMemo(()=>(controlledRsuiteData || rsuiteData).filter((option)=>option.isDisabled).map((option)=>option.value), [
|
|
69768
|
+
controlledRsuiteData,
|
|
69769
|
+
rsuiteData
|
|
69769
69770
|
]);
|
|
69770
69771
|
useFieldUndefineEffect(isUndefinedWhenDisabled && disabled, onChange);
|
|
69771
69772
|
useClickOutsideEffect(boxRef, close, baseContainer);
|