Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed May 3, 2023
1 parent 1304fd5 commit 3c3c8c0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions components/lib/datatable/BodyCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import * as React from 'react';
import { ariaLabel } from '../api/Api';
import { ColumnBase } from '../column/ColumnBase';
import { useEventListener, useUnmountEffect, useUpdateEffect } from '../hooks/Hooks';
import { BarsIcon } from '../icons/bars';
import { CheckIcon } from '../icons/check';
import { ChevronDownIcon } from '../icons/chevrondown';
import { ChevronRightIcon } from '../icons/chevronright';
import { PencilIcon } from '../icons/pencil';
import { TimesIcon } from '../icons/times';
import { OverlayService } from '../overlayservice/OverlayService';
import { Ripple } from '../ripple/Ripple';
import { classNames, DomHandler, IconUtils, ObjectUtils } from '../utils/Utils';
import { DomHandler, IconUtils, ObjectUtils, classNames } from '../utils/Utils';
import { RowCheckbox } from './RowCheckbox';
import { RowRadioButton } from './RowRadioButton';
import { CheckIcon } from '../icons/check';
import { TimesIcon } from '../icons/times';
import { PencilIcon } from '../icons/pencil';
import { ChevronDownIcon } from '../icons/chevrondown';
import { ChevronRightIcon } from '../icons/chevronright';
import { BarsIcon } from '../icons/bars';

export const BodyCell = React.memo((props) => {
const [editingState, setEditingState] = React.useState(props.editing);
Expand Down Expand Up @@ -475,7 +475,7 @@ export const BodyCell = React.memo((props) => {
}, [props.editingMeta]);

React.useEffect(() => {
if (props.editMode === 'row') {
if (props.editMode === 'cell' || props.editMode === 'row') {
const callbackParams = getCellCallbackParams();
const params = { ...callbackParams, editing: editingState, editingKey };

Expand Down

0 comments on commit 3c3c8c0

Please sign in to comment.