@oliasoft-open-source/react-ui-library 4.15.2 → 4.15.3-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 +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19539,7 +19539,7 @@ const Layer$1 = ({
|
|
|
19539
19539
|
return /* @__PURE__ */ jsx(
|
|
19540
19540
|
Option$1,
|
|
19541
19541
|
{
|
|
19542
|
-
option: option2,
|
|
19542
|
+
option: { ...option2, key: `${index2}` },
|
|
19543
19543
|
onChange: (evt) => {
|
|
19544
19544
|
const { value } = option2;
|
|
19545
19545
|
const next2 = options.map(
|
|
@@ -19563,6 +19563,7 @@ const OptionDropdown = ({
|
|
|
19563
19563
|
showHeader = true,
|
|
19564
19564
|
maxHeight = "40vh"
|
|
19565
19565
|
}) => {
|
|
19566
|
+
const [newOptions, setNewOptions] = useState(options);
|
|
19566
19567
|
return /* @__PURE__ */ jsx(
|
|
19567
19568
|
Menu,
|
|
19568
19569
|
{
|
|
@@ -19574,11 +19575,11 @@ const OptionDropdown = ({
|
|
|
19574
19575
|
sections: /* @__PURE__ */ jsx(
|
|
19575
19576
|
Layer$1,
|
|
19576
19577
|
{
|
|
19577
|
-
options,
|
|
19578
|
+
options: newOptions,
|
|
19578
19579
|
onChangeOptions: (evt, nextOptions) => {
|
|
19579
|
-
evt.stopPropagation();
|
|
19580
19580
|
evt.target.name = name2;
|
|
19581
19581
|
evt.target.value = nextOptions;
|
|
19582
|
+
setNewOptions(nextOptions);
|
|
19582
19583
|
onChange(evt);
|
|
19583
19584
|
},
|
|
19584
19585
|
showHeader,
|