pixel-react-excel-sheet 1.0.36 → 1.0.38

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