react-table-edit 1.0.8 → 1.1.0

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
@@ -1078,7 +1078,9 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
1078
1078
  e.preventDefault();
1079
1079
  },
1080
1080
  tag: "div",
1081
- style: { width: width ? width + 2 : "min-content" },
1081
+ style: {
1082
+ width: width ? width : selectTableRef?.current?.clientWidth
1083
+ },
1082
1084
  className: (0, import_classnames4.default)("select-table-control", { "r-select-is-disabled": isDisabled }, { "r-select-is-open": dropdownOpen }, { "r-select-is-focus": isFocus }, { "r-select-is-invalid": invalid }),
1083
1085
  children: [
1084
1086
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "select-table-container", children: [
@@ -1142,7 +1144,7 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
1142
1144
  className: "formula-dropdown icon-dropdown p-0",
1143
1145
  style: {
1144
1146
  minWidth: selectTableRef?.current?.clientWidth,
1145
- width: menuWidth ? menuWidth + 2 : "min-content",
1147
+ width: width ? width + 2 : "min-content",
1146
1148
  position: "fixed",
1147
1149
  borderRadius: 4,
1148
1150
  zIndex: 9999
@@ -3159,7 +3161,6 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
3159
3161
  showFooter: col.selectSettings?.showFooter,
3160
3162
  formatOptionLabel: col.selectSettings?.formatOptionLabel,
3161
3163
  footerComponent: col.selectSettings?.footerComponent,
3162
- width: col.selectSettings?.widthPopup ? Number(col.selectSettings?.widthPopup) : void 0,
3163
3164
  invalid: col.validate && col.validate(row[col.field], row),
3164
3165
  maxHeight: col.selectSettings?.heightPopup ? Number(col.selectSettings?.heightPopup) : void 0,
3165
3166
  menuWidth: col.selectSettings?.widthPopup ? Number(col.selectSettings?.widthPopup) : void 0,
package/dist/index.mjs CHANGED
@@ -1039,7 +1039,9 @@ var SelectTable = forwardRef((props, ref) => {
1039
1039
  e.preventDefault();
1040
1040
  },
1041
1041
  tag: "div",
1042
- style: { width: width ? width + 2 : "min-content" },
1042
+ style: {
1043
+ width: width ? width : selectTableRef?.current?.clientWidth
1044
+ },
1043
1045
  className: classnames3("select-table-control", { "r-select-is-disabled": isDisabled }, { "r-select-is-open": dropdownOpen }, { "r-select-is-focus": isFocus }, { "r-select-is-invalid": invalid }),
1044
1046
  children: [
1045
1047
  /* @__PURE__ */ jsxs5("div", { className: "select-table-container", children: [
@@ -1103,7 +1105,7 @@ var SelectTable = forwardRef((props, ref) => {
1103
1105
  className: "formula-dropdown icon-dropdown p-0",
1104
1106
  style: {
1105
1107
  minWidth: selectTableRef?.current?.clientWidth,
1106
- width: menuWidth ? menuWidth + 2 : "min-content",
1108
+ width: width ? width + 2 : "min-content",
1107
1109
  position: "fixed",
1108
1110
  borderRadius: 4,
1109
1111
  zIndex: 9999
@@ -3128,7 +3130,6 @@ var TableEdit = forwardRef4((props, ref) => {
3128
3130
  showFooter: col.selectSettings?.showFooter,
3129
3131
  formatOptionLabel: col.selectSettings?.formatOptionLabel,
3130
3132
  footerComponent: col.selectSettings?.footerComponent,
3131
- width: col.selectSettings?.widthPopup ? Number(col.selectSettings?.widthPopup) : void 0,
3132
3133
  invalid: col.validate && col.validate(row[col.field], row),
3133
3134
  maxHeight: col.selectSettings?.heightPopup ? Number(col.selectSettings?.heightPopup) : void 0,
3134
3135
  menuWidth: col.selectSettings?.widthPopup ? Number(col.selectSettings?.widthPopup) : void 0,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
3
  "license": "MIT",
4
- "version": "1.0.8",
4
+ "version": "1.1.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",