arengibook 1.2.0-main → 1.2.1-main
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/index.js +28 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37457,6 +37457,7 @@ var Dropdown = function Dropdown(props) {
|
|
|
37457
37457
|
var dropdownRef = useRef(null);
|
|
37458
37458
|
var dropdownComposantRef = useRef(null);
|
|
37459
37459
|
var containerRef = useRef(null);
|
|
37460
|
+
var didMountRef = useRef(false);
|
|
37460
37461
|
var clickedFromList = useRef(false);
|
|
37461
37462
|
var currentPageRef = useRef(1);
|
|
37462
37463
|
var filterRef = useRef('');
|
|
@@ -37506,6 +37507,19 @@ var Dropdown = function Dropdown(props) {
|
|
|
37506
37507
|
useEffect(function () {
|
|
37507
37508
|
if (optionSelected) setShowRequiredError(false);
|
|
37508
37509
|
}, [optionSelected]);
|
|
37510
|
+
useEffect(function () {
|
|
37511
|
+
if (!didMountRef.current) {
|
|
37512
|
+
didMountRef.current = true;
|
|
37513
|
+
return;
|
|
37514
|
+
}
|
|
37515
|
+
if (containerRef.current) {
|
|
37516
|
+
var inputEl = containerRef.current.querySelector('input');
|
|
37517
|
+
var target = inputEl || containerRef.current;
|
|
37518
|
+
target.dispatchEvent(new Event('change', {
|
|
37519
|
+
bubbles: true
|
|
37520
|
+
}));
|
|
37521
|
+
}
|
|
37522
|
+
}, [optionSelected]);
|
|
37509
37523
|
useEffect(function () {
|
|
37510
37524
|
setOptionSelected(objValue ? objValue === null || objValue === void 0 ? void 0 : objValue[optionValue] : value !== null && value !== void 0 ? value : null);
|
|
37511
37525
|
}, [value, objValue, optionValue]);
|
|
@@ -41638,6 +41652,7 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
41638
41652
|
setTooltipKey = _useState0[1];
|
|
41639
41653
|
var multiSelectRef = useRef(null);
|
|
41640
41654
|
var containerRef = useRef(null);
|
|
41655
|
+
var didMountRef = useRef(false);
|
|
41641
41656
|
var _useState1 = useState(null),
|
|
41642
41657
|
_useState10 = _slicedToArray$c(_useState1, 2),
|
|
41643
41658
|
sortOrder = _useState10[0],
|
|
@@ -41646,6 +41661,19 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
41646
41661
|
_useState12 = _slicedToArray$c(_useState11, 2),
|
|
41647
41662
|
collapsedGroups = _useState12[0],
|
|
41648
41663
|
setCollapsedGroups = _useState12[1];
|
|
41664
|
+
useEffect(function () {
|
|
41665
|
+
if (!didMountRef.current) {
|
|
41666
|
+
didMountRef.current = true;
|
|
41667
|
+
return;
|
|
41668
|
+
}
|
|
41669
|
+
if (containerRef.current) {
|
|
41670
|
+
var inputEl = containerRef.current.querySelector('input');
|
|
41671
|
+
var target = inputEl || containerRef.current;
|
|
41672
|
+
target.dispatchEvent(new Event('change', {
|
|
41673
|
+
bubbles: true
|
|
41674
|
+
}));
|
|
41675
|
+
}
|
|
41676
|
+
}, [selectedOptions]);
|
|
41649
41677
|
|
|
41650
41678
|
// ────────────────────────────────────────────────────────────
|
|
41651
41679
|
// FLATOPTIONS — Options aplaties (tableau plat)
|