Skip to content
Permalink
Browse files

Merge pull request #5514 from rstudio/bugfix/modal-alert-not-reading-…

…messages

prevent focus bounce in modal dialogs (was confusing screen readers)
  • Loading branch information
gtritchie committed Oct 7, 2019
2 parents 5b19513 + 96fc4ae commit ca0f78683644fc8c8cf575f9d29e7b8414d40c1e
Showing with 0 additions and 7 deletions.
  1. +0 −7 src/gwt/src/org/rstudio/core/client/widget/ModalDialogBase.java
@@ -209,13 +209,6 @@ protected void onDialogShown()
{
refreshFocusableElements();
focusInitialControl();

// try hard to make sure focus ends up in dialog
Element focused = DomUtils.getActiveElement();
if (focused == null || !DomUtils.contains(getElement(), focused))
{
focusFirstControl();
}
}

protected void addOkButton(ThemedButton okButton, String elementId)

0 comments on commit ca0f786

Please sign in to comment.
You can’t perform that action at this time.