pixel-react-excel-sheet 1.0.35 → 1.0.36

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/lib/index.js CHANGED
@@ -1122,6 +1122,7 @@ const Drawer = ({
1122
1122
  leftSecondaryButtonProps = {},
1123
1123
  showEditButton = false,
1124
1124
  onEdit = () => {},
1125
+ onCollapes = () => {},
1125
1126
  overlay = false,
1126
1127
  isFooterRequired = true,
1127
1128
  footerContent = null,
@@ -1148,6 +1149,7 @@ const Drawer = ({
1148
1149
  const handleEsc = useEscapeKey('Escape');
1149
1150
  handleEsc(onClose);
1150
1151
  const toggleExpand = () => {
1152
+ onCollapes(isExpanded);
1151
1153
  setIsExpanded(prev => !prev);
1152
1154
  };
1153
1155
  const onCancel = () => {
@@ -33509,8 +33511,10 @@ const ExcelFile = ({
33509
33511
  }, [contextMenu.open]);
33510
33512
  React.useEffect(() => {
33511
33513
  document.addEventListener('click', handleClickOutside);
33514
+ document.addEventListener('contextmenu', handleClickOutside);
33512
33515
  return () => {
33513
33516
  document.removeEventListener('click', handleClickOutside);
33517
+ document.removeEventListener('contextmenu', handleClickOutside);
33514
33518
  };
33515
33519
  }, [handleClickOutside]);
33516
33520
  const contextClick = event => {