@lensui/lens-table 0.1.94 → 0.1.95

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.cjs CHANGED
@@ -1035,8 +1035,12 @@ function TextAreaEditor({
1035
1035
  setOpen(true);
1036
1036
  return;
1037
1037
  }
1038
- rememberSelection(open ? textareaRef.current : inputRef.current);
1039
- setOpen((current) => !current);
1038
+ if (open) {
1039
+ textareaRef.current?.focus();
1040
+ return;
1041
+ }
1042
+ rememberSelection(inputRef.current);
1043
+ setOpen(true);
1040
1044
  },
1041
1045
  children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(MultilineEditorIcon, {})
1042
1046
  }
package/dist/index.js CHANGED
@@ -1009,8 +1009,12 @@ function TextAreaEditor({
1009
1009
  setOpen(true);
1010
1010
  return;
1011
1011
  }
1012
- rememberSelection(open ? textareaRef.current : inputRef.current);
1013
- setOpen((current) => !current);
1012
+ if (open) {
1013
+ textareaRef.current?.focus();
1014
+ return;
1015
+ }
1016
+ rememberSelection(inputRef.current);
1017
+ setOpen(true);
1014
1018
  },
1015
1019
  children: /* @__PURE__ */ jsx7(MultilineEditorIcon, {})
1016
1020
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lensui/lens-table",
3
- "version": "0.1.94",
3
+ "version": "0.1.95",
4
4
  "description": "A lightweight, canvas-rendered React table component for LensUI.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",