@mtes-mct/monitor-ui 2.9.1 → 2.9.2

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 CHANGED
@@ -1,3 +1,14 @@
1
+ ## [2.9.1](https://github.com/MTES-MCT/monitor-ui/compare/v2.9.0...v2.9.1) (2023-01-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **fields:** fix DateRangePicker calendar selection update ([4fb68f8](https://github.com/MTES-MCT/monitor-ui/commit/4fb68f86278094e8fb8255b1f2bf9ce531bbc721))
7
+ * **fields:** fix MultiSelect closing behavior ([1e832e6](https://github.com/MTES-MCT/monitor-ui/commit/1e832e6042cf7734f2084074672ea52220fb9fa8))
8
+ * **fields:** fix Select not closing on selection ([c132a1f](https://github.com/MTES-MCT/monitor-ui/commit/c132a1f153a3e51eb59cf2cfd363e873604efe29))
9
+ * **fields:** make MultiSelect width 100% of parent width ([aa38376](https://github.com/MTES-MCT/monitor-ui/commit/aa38376d0a57961bcdd385165e842b101cd037b1))
10
+ * **fields:** make Select width 100% of parent width ([9aa3f71](https://github.com/MTES-MCT/monitor-ui/commit/9aa3f71f9e258ca66989ef24860dceb4333348b9))
11
+
1
12
  # [2.9.0](https://github.com/MTES-MCT/monitor-ui/compare/v2.8.1...v2.9.0) (2023-01-25)
2
13
 
3
14
 
package/index.js CHANGED
@@ -5022,7 +5022,7 @@ function MultiSelect({ baseContainer, error, fixedWidth, isLabelHidden = false,
5022
5022
  searchable = false, ...originalProps }) {
5023
5023
  // eslint-disable-next-line no-null/no-null
5024
5024
  const boxRef = useRef(null);
5025
- const [isOpen, setIsOpen] = useState(true);
5025
+ const [isOpen, setIsOpen] = useState(false);
5026
5026
  const controlledError = useMemo(() => normalizeString(error), [error]);
5027
5027
  const hasError = useMemo(() => Boolean(controlledError), [controlledError]);
5028
5028
  const key = useMemo(() => `${originalProps.name}-${JSON.stringify(originalProps.defaultValue)}`, [originalProps.defaultValue, originalProps.name]);