@mtes-mct/monitor-ui 2.9.4 → 2.9.5
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 +9 -0
- package/index.js +13 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [2.9.4](https://github.com/MTES-MCT/monitor-ui/compare/v2.9.3...v2.9.4) (2023-01-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **elements:** make Fieldset width 100% of parent width ([63d10c6](https://github.com/MTES-MCT/monitor-ui/commit/63d10c60ab12ebe437ea236ea5cde12fa13fd6ff))
|
|
7
|
+
* **fields:** fix MultiSelect placeholder alignment ([8c335b2](https://github.com/MTES-MCT/monitor-ui/commit/8c335b2d26208f2b7faecc9434ef1e0c201698e3))
|
|
8
|
+
* **fields:** improve MultiZoneEditor alignments ([b7d5784](https://github.com/MTES-MCT/monitor-ui/commit/b7d5784edefba4bf6e294f5cdf6cf27b79c309db))
|
|
9
|
+
|
|
1
10
|
## [2.9.3](https://github.com/MTES-MCT/monitor-ui/compare/v2.9.2...v2.9.3) (2023-01-27)
|
|
2
11
|
|
|
3
12
|
|
package/index.js
CHANGED
|
@@ -5300,8 +5300,19 @@ searchable = false, ...originalProps }) {
|
|
|
5300
5300
|
onChange(normalizedNextValue);
|
|
5301
5301
|
}
|
|
5302
5302
|
}, [close, onChange]);
|
|
5303
|
-
const toggle = useCallback(() => {
|
|
5304
|
-
|
|
5303
|
+
const toggle = useCallback((event) => {
|
|
5304
|
+
let targetElement = event.target;
|
|
5305
|
+
if (targetElement.tagName === 'path') {
|
|
5306
|
+
if (targetElement.parentElement) {
|
|
5307
|
+
targetElement = targetElement.parentElement;
|
|
5308
|
+
}
|
|
5309
|
+
}
|
|
5310
|
+
if (targetElement.classList.contains('rs-picker-toggle') ||
|
|
5311
|
+
targetElement.classList.contains('rs-stack-item') ||
|
|
5312
|
+
targetElement.classList.contains('rs-picker-toggle-caret') ||
|
|
5313
|
+
targetElement.classList.contains('rs-picker-toggle-placeholder')) {
|
|
5314
|
+
setIsOpen(!isOpen);
|
|
5315
|
+
}
|
|
5305
5316
|
}, [isOpen]);
|
|
5306
5317
|
useClickOutside(boxRef, close, baseContainer);
|
|
5307
5318
|
useEffect(() => {
|