pixel-react-excel-sheet 1.0.37 → 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) {
@@ -31969,7 +31971,6 @@ const Cell = ({
31969
31971
  }, [setCellDimensions, select, dragging, point]);
31970
31972
  const contextClick = React__namespace.useCallback(event => {
31971
31973
  event.preventDefault();
31972
- console.log("Asdasd");
31973
31974
  select(point);
31974
31975
  setContextMenu({
31975
31976
  open: true,