react-table-edit 1.1.8 → 1.1.9
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 +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -863,6 +863,11 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
|
|
|
863
863
|
setIsLoading(false);
|
|
864
864
|
setOptionsLoad(rs);
|
|
865
865
|
};
|
|
866
|
+
(0, import_react6.useEffect)(() => {
|
|
867
|
+
if (!searchTerm) {
|
|
868
|
+
setOptionsLoad(void 0);
|
|
869
|
+
}
|
|
870
|
+
}, [searchTerm]);
|
|
866
871
|
const checkOverflow = (indexRow, indexCol) => {
|
|
867
872
|
const element = document.getElementById(`select-${id}-${indexRow}-${indexCol}`);
|
|
868
873
|
return element && element.scrollWidth > element.clientWidth;
|
package/dist/index.mjs
CHANGED
|
@@ -824,6 +824,11 @@ var SelectTable = forwardRef((props, ref) => {
|
|
|
824
824
|
setIsLoading(false);
|
|
825
825
|
setOptionsLoad(rs);
|
|
826
826
|
};
|
|
827
|
+
useEffect3(() => {
|
|
828
|
+
if (!searchTerm) {
|
|
829
|
+
setOptionsLoad(void 0);
|
|
830
|
+
}
|
|
831
|
+
}, [searchTerm]);
|
|
827
832
|
const checkOverflow = (indexRow, indexCol) => {
|
|
828
833
|
const element = document.getElementById(`select-${id}-${indexRow}-${indexCol}`);
|
|
829
834
|
return element && element.scrollWidth > element.clientWidth;
|