From 4d8080792e8eb8b2d008198ee1b441f44e760c90 Mon Sep 17 00:00:00 2001 From: GermanVor Date: Sun, 11 Feb 2024 01:10:44 +0100 Subject: [PATCH] chore: onKeyDown to extraProps --- src/components/Button/Button.tsx | 3 --- .../withTableSettings/TableColumnSetup/TableColumnSetup.tsx | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx index 3ee7e7706d..babe0860ba 100644 --- a/src/components/Button/Button.tsx +++ b/src/components/Button/Button.tsx @@ -78,7 +78,6 @@ export interface ButtonProps extends DOMProps, QAProps { onMouseLeave?: React.MouseEventHandler; onFocus?: React.FocusEventHandler; onBlur?: React.FocusEventHandler; - onKeyDown?: React.KeyboardEventHandler; /** Button content. You can mix button text with `` component */ children?: React.ReactNode; } @@ -107,7 +106,6 @@ const ButtonWithHandlers = React.forwardRef(function B onMouseLeave, onFocus, onBlur, - onKeyDown, children, id, style, @@ -140,7 +138,6 @@ const ButtonWithHandlers = React.forwardRef(function B onMouseLeave, onFocus, onBlur, - onKeyDown, id, style, className: b( diff --git a/src/components/Table/hoc/withTableSettings/TableColumnSetup/TableColumnSetup.tsx b/src/components/Table/hoc/withTableSettings/TableColumnSetup/TableColumnSetup.tsx index dd0695d043..7dba077736 100644 --- a/src/components/Table/hoc/withTableSettings/TableColumnSetup/TableColumnSetup.tsx +++ b/src/components/Table/hoc/withTableSettings/TableColumnSetup/TableColumnSetup.tsx @@ -96,7 +96,7 @@ export const TableColumnSetup = (props: TableColumnSetupProps) => { return ( renderSwitcher?.({onClick: toggleOpen, onKeyDown}) || ( -