@oliasoft-open-source/react-ui-library 3.9.1 → 3.9.2-beta-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/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27509,6 +27509,9 @@ const Select = (props) => {
|
|
|
27509
27509
|
closeOnOptionActionClick,
|
|
27510
27510
|
testId
|
|
27511
27511
|
} = props;
|
|
27512
|
+
console.group("PROPS");
|
|
27513
|
+
console.log(props);
|
|
27514
|
+
console.groupEnd();
|
|
27512
27515
|
const enableAutoScroll = !native && autoScroll2 === true;
|
|
27513
27516
|
const {
|
|
27514
27517
|
multi,
|
|
@@ -27550,20 +27553,30 @@ const Select = (props) => {
|
|
|
27550
27553
|
]
|
|
27551
27554
|
}) : error2;
|
|
27552
27555
|
const onChangeSelectedValue = (evt, selectedOptions2) => {
|
|
27556
|
+
console.group("ON CHANGE");
|
|
27557
|
+
console.group("ON CHANGE PROPS");
|
|
27558
|
+
console.log(evt);
|
|
27559
|
+
console.log(selectedOptions2);
|
|
27560
|
+
console.groupEnd();
|
|
27553
27561
|
if (deprecatedEventHandler) {
|
|
27562
|
+
console.log("DEPRECATED");
|
|
27554
27563
|
const newSelectedOptions = multi ? selectedOptions2.map((o) => simpleInputs ? o.value : o) : simpleInputs ? selectedOptions2.value : selectedOptions2;
|
|
27555
27564
|
onChange(newSelectedOptions);
|
|
27556
27565
|
} else {
|
|
27566
|
+
console.log("DEPRECATED ELSE");
|
|
27557
27567
|
const isSyntheticEvent = !(evt instanceof Event);
|
|
27558
27568
|
const value = multi ? selectedOptions2 : selectedOptions2.value;
|
|
27559
27569
|
if (isSyntheticEvent) {
|
|
27570
|
+
console.log("SYNTHETIC");
|
|
27560
27571
|
evt.target.name = name2;
|
|
27561
27572
|
evt.target.value = value;
|
|
27562
27573
|
if (!multi) {
|
|
27574
|
+
console.log("NO MULTI");
|
|
27563
27575
|
evt.target.label = selectedOptions2.label;
|
|
27564
27576
|
}
|
|
27565
27577
|
onChange(evt);
|
|
27566
27578
|
} else {
|
|
27579
|
+
console.log("SYNTHETIC ELSE");
|
|
27567
27580
|
onChange({
|
|
27568
27581
|
...evt,
|
|
27569
27582
|
target: {
|
|
@@ -27575,6 +27588,7 @@ const Select = (props) => {
|
|
|
27575
27588
|
});
|
|
27576
27589
|
}
|
|
27577
27590
|
}
|
|
27591
|
+
console.groupEnd();
|
|
27578
27592
|
};
|
|
27579
27593
|
return useNative ? /* @__PURE__ */ jsx(NativeSelect, {
|
|
27580
27594
|
...props,
|