Skip to content

Commit

Permalink
fix(ui5-dialog): dialog focus trapping works again (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladitasev authored Feb 12, 2020
1 parent 7f30cf3 commit e899708
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/main/src/Dialog.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{>include "./Popup.hbs"}}

<span class="ui5-popup-frame">
<span class="ui5-popup-frame" @focusin="{{_onfocusin}}">
<span id="{{_id}}-firstfe" tabindex="0"></span>
<div style="{{zindex}}" class="ui5-dialog-root-parent {{classes.dialogParent}}">
<div tabindex="-1" aria-labelledby="{{headerId}}" role="dialog" aria-modal="true" class="ui5-popup-root ui5-dialog-root">
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ class Popup extends UI5Element {
}
}

onfocusin(event) {
_onfocusin(event) {
this.preserveFocus(event, this.getPopupDomRef());
}

Expand Down

0 comments on commit e899708

Please sign in to comment.