@leankylin-sheet/react 1.2.15 → 1.2.16

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.esm.js CHANGED
@@ -10714,7 +10714,7 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
10714
10714
  });
10715
10715
  }, [handleRedo, handleUndo, setContextWithProduce, mergedSettings.disabledKeyboardCodes]);
10716
10716
  var onPaste = useCallback(function (e) {
10717
- if (isFocusRef.current) {
10717
+ if (isFocusRef.current && _.isEmpty(context.luckysheetCellUpdate)) {
10718
10718
  setContextWithProduce(function (draftCtx) {
10719
10719
  try {
10720
10720
  handlePasteByLeanklin(draftCtx, e);
package/dist/index.js CHANGED
@@ -10724,7 +10724,7 @@ var Workbook = /*#__PURE__*/React__default['default'].forwardRef(function (_ref,
10724
10724
  });
10725
10725
  }, [handleRedo, handleUndo, setContextWithProduce, mergedSettings.disabledKeyboardCodes]);
10726
10726
  var onPaste = React.useCallback(function (e) {
10727
- if (isFocusRef.current) {
10727
+ if (isFocusRef.current && ___default['default'].isEmpty(context.luckysheetCellUpdate)) {
10728
10728
  setContextWithProduce(function (draftCtx) {
10729
10729
  try {
10730
10730
  core.handlePasteByLeanklin(draftCtx, e);