Fix 'Dialog' keydown event and prop type warning (#1305)

This commit is contained in:
Sanghyeon Lee 2020-04-08 21:31:40 +09:00 committed by GitHub
parent 020eebb663
commit 26facfa710
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 45 deletions

View file

@ -26,6 +26,7 @@ export function Modal(props: {
aria-modal="true"
onKeyDown={handleKeydown}
aria-labelledby={props.labelledBy}
tabIndex={-1}
>
<div className="Modal__background" onClick={props.onCloseRequest}></div>
<div