@revisium/schema-toolkit-ui 0.3.0 → 0.3.1

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
@@ -5794,7 +5794,7 @@ const FocusPopover = ({ isOpen, setIsOpen, trigger, children, disabled, width })
5794
5794
  }, []);
5795
5795
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_chakra_ui_react.Box, {
5796
5796
  ref: triggerRef,
5797
- onFocus: (0, react.useCallback)(() => {
5797
+ onPointerDown: (0, react.useCallback)(() => {
5798
5798
  if (!disabled) setIsOpen(true);
5799
5799
  }, [disabled, setIsOpen]),
5800
5800
  children: trigger
@@ -6419,7 +6419,8 @@ const FileActions = (0, mobx_react_lite.observer)(({ node }) => {
6419
6419
  const file = event.target.files?.[0];
6420
6420
  if (!file) return;
6421
6421
  event.target.value = "";
6422
- await node.callbacks?.onUploadFile?.(fileId, file);
6422
+ const result = await node.callbacks?.onUploadFile?.(fileId, file);
6423
+ if (result) node.node.setValue(result, { internal: true });
6423
6424
  }, [node, fileId]);
6424
6425
  const handleOpenFile = (0, react.useCallback)(() => {
6425
6426
  if (node.callbacks?.onOpenFile) node.callbacks.onOpenFile(url);