Skip to content

Commit

Permalink
FIX: Table was not always focused when clicking outside edited cell (#…
Browse files Browse the repository at this point in the history
…1953)

Co-authored-by: Petr Hrehorovsky <83349812+washibana@users.noreply.github.com>
  • Loading branch information
JindrichSusen and washibana committed Sep 22, 2023
1 parent d61ac78 commit f18e3ca
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,12 @@ export class RawTable extends React.Component<ITableProps & { isVisible: boolean

@action.bound handleScrollerClick(event: any) {
const {handled} = this.tableRenderer.handleClick(event);
if (!handled) this.props.onOutsideTableClick?.(event);
if (!this.tablePanelView.isEditing || !handled) {
this.focusTable();
}
if (!handled) {
this.props.onOutsideTableClick?.(event);
}
}

@action.bound handleResize(contentRect: { bounds: BoundingRect }) {
Expand Down

0 comments on commit f18e3ca

Please sign in to comment.