Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3a31469

Browse files
committed
refactor(CDropdown): change onKeyDown events to React.KeyboardEvent
1 parent 96c39fc commit 3a31469

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎packages/coreui-react/src/components/dropdown/CDropdownToggle.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ export const CDropdownToggle: FC<CDropdownToggleProps> = ({
6868
onFocus: () => handleShow?.(),
6969
onBlur: () => handleHide?.(),
7070
}),
71-
onKeyDown: (event: KeyboardEvent) => {
71+
onKeyDown: (event: React.KeyboardEvent) => {
7272
if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
7373
event.preventDefault()
74-
handleShow?.(event)
74+
handleShow?.(event.nativeEvent)
7575
}
7676
},
7777
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /