Skip to content

Commit

Permalink
fix(ui5-popup): restore focus when block layer is clicked (#2123)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid committed Aug 20, 2020
1 parent af0785c commit c079722
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/main/src/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class Popup extends UI5Element {
/**
* Prevents the user from interacting with the content under the block layer
*/
_onBlockLayerKeyDown(event) {
_preventBlockLayerFocus(event) {
event.preventDefault();
}

Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/PopupBlockLayer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
?hidden={{_blockLayerHidden}}
tabindex="1"
style="{{styles.blockLayer}}"
@keydown="{{_onBlockLayerKeyDown}}">
@keydown="{{_preventBlockLayerFocus}}"
@mousedown="{{_preventBlockLayerFocus}}">
</div>

0 comments on commit c079722

Please sign in to comment.