Skip to content

Commit

Permalink
fix: fixed Table onMouseLeave callback bug (#1794)
Browse files Browse the repository at this point in the history
Co-authored-by: shijia.me <[email protected]>
  • Loading branch information
shijiatongxue and shijiame authored Sep 1, 2023
1 parent a4e7ce9 commit 3540ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/semi-ui/table/Body/BaseRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export default class TableRow extends BaseComponent<BaseRowProps, Record<string,

const customRowProps = this.adapter.getCache('customRowProps');

if (typeof customRowProps.onMouseEnter === 'function') {
if (typeof customRowProps?.onMouseEnter === 'function') {
customRowProps.onMouseEnter(e);
}
};
Expand All @@ -304,7 +304,7 @@ export default class TableRow extends BaseComponent<BaseRowProps, Record<string,

const customRowProps = this.adapter.getCache('customRowProps');

if (typeof customRowProps.onMouseLeave === 'function') {
if (typeof customRowProps?.onMouseLeave === 'function') {
customRowProps.onMouseLeave(e);
}
};
Expand Down

0 comments on commit 3540ac4

Please sign in to comment.