Skip to content

Commit c079722

Browse files
authored
fix(ui5-popup): restore focus when block layer is clicked (#2123)
1 parent af0785c commit c079722

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/main/src/Popup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class Popup extends UI5Element {
207207
/**
208208
* Prevents the user from interacting with the content under the block layer
209209
*/
210-
_onBlockLayerKeyDown(event) {
210+
_preventBlockLayerFocus(event) {
211211
event.preventDefault();
212212
}
213213

packages/main/src/PopupBlockLayer.hbs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
?hidden={{_blockLayerHidden}}
33
tabindex="1"
44
style="{{styles.blockLayer}}"
5-
@keydown="{{_onBlockLayerKeyDown}}">
5+
@keydown="{{_preventBlockLayerFocus}}"
6+
@mousedown="{{_preventBlockLayerFocus}}">
67
</div>

0 commit comments

Comments
 (0)