react-table-edit 1.2.10 → 1.2.11

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 CHANGED
@@ -865,7 +865,7 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
865
865
  setOptionsLoad(rs);
866
866
  };
867
867
  (0, import_react6.useEffect)(() => {
868
- if (optionsLoad?.length === 0 && allowCreate && !isMulti && (columns?.length ?? 0) === 0) {
868
+ if (optionsLoad?.length === 0 && allowCreate) {
869
869
  setOptionsLoad([{ label: `Create "${searchTerm}"`, value: searchTerm, isCreated: true }]);
870
870
  }
871
871
  }, [optionsLoad]);
package/dist/index.mjs CHANGED
@@ -828,7 +828,7 @@ var SelectTable = forwardRef((props, ref) => {
828
828
  setOptionsLoad(rs);
829
829
  };
830
830
  useEffect3(() => {
831
- if (optionsLoad?.length === 0 && allowCreate && !isMulti && (columns?.length ?? 0) === 0) {
831
+ if (optionsLoad?.length === 0 && allowCreate) {
832
832
  setOptionsLoad([{ label: `Create "${searchTerm}"`, value: searchTerm, isCreated: true }]);
833
833
  }
834
834
  }, [optionsLoad]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",