react-table-edit 1.2.44 → 1.2.45
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 +7 -6
- package/dist/index.mjs +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -713,9 +713,11 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
|
|
|
713
713
|
}
|
|
714
714
|
}, [inputRef]);
|
|
715
715
|
(0, import_react6.useEffect)(() => {
|
|
716
|
-
if (searchTerm
|
|
717
|
-
|
|
718
|
-
|
|
716
|
+
if (searchTerm) {
|
|
717
|
+
if (!dropdownOpen) {
|
|
718
|
+
setDropdownOpen(true);
|
|
719
|
+
}
|
|
720
|
+
setIndexFocus(-1);
|
|
719
721
|
}
|
|
720
722
|
}, [searchTerm]);
|
|
721
723
|
(0, import_react6.useEffect)(() => {
|
|
@@ -754,10 +756,9 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
|
|
|
754
756
|
if (dropdownOpen && newItem) {
|
|
755
757
|
handChange(newItem);
|
|
756
758
|
handleOpenClose();
|
|
757
|
-
flag = true;
|
|
758
759
|
}
|
|
759
|
-
if (!
|
|
760
|
-
|
|
760
|
+
if (!dropdownOpen) {
|
|
761
|
+
setDropdownOpen(true);
|
|
761
762
|
flag = true;
|
|
762
763
|
}
|
|
763
764
|
} else if (e.code === "Escape") {
|
package/dist/index.mjs
CHANGED
|
@@ -675,9 +675,11 @@ var SelectTable = forwardRef((props, ref) => {
|
|
|
675
675
|
}
|
|
676
676
|
}, [inputRef]);
|
|
677
677
|
useEffect3(() => {
|
|
678
|
-
if (searchTerm
|
|
679
|
-
|
|
680
|
-
|
|
678
|
+
if (searchTerm) {
|
|
679
|
+
if (!dropdownOpen) {
|
|
680
|
+
setDropdownOpen(true);
|
|
681
|
+
}
|
|
682
|
+
setIndexFocus(-1);
|
|
681
683
|
}
|
|
682
684
|
}, [searchTerm]);
|
|
683
685
|
useEffect3(() => {
|
|
@@ -716,10 +718,9 @@ var SelectTable = forwardRef((props, ref) => {
|
|
|
716
718
|
if (dropdownOpen && newItem) {
|
|
717
719
|
handChange(newItem);
|
|
718
720
|
handleOpenClose();
|
|
719
|
-
flag = true;
|
|
720
721
|
}
|
|
721
|
-
if (!
|
|
722
|
-
|
|
722
|
+
if (!dropdownOpen) {
|
|
723
|
+
setDropdownOpen(true);
|
|
723
724
|
flag = true;
|
|
724
725
|
}
|
|
725
726
|
} else if (e.code === "Escape") {
|