Skip to content

Commit

Permalink
fix: focus confirm button (elastic#776)
Browse files Browse the repository at this point in the history
better mimics default confirmation dialogs, and also allows the use of the escape key since the modal body becomes focused
  • Loading branch information
w33ble authored and Rashid Khan committed Jul 12, 2018
1 parent f562136 commit 76fba5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/components/confirm_modal/confirm_modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const ConfirmModal = props => {
onConfirm={confirm}
confirmButtonText={confirmButtonText}
cancelButtonText={cancelButtonText}
defaultFocusedButton="confirm"
buttonColor="danger"
>
{message}
Expand Down

0 comments on commit 76fba5d

Please sign in to comment.