File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 6
6
aria-label =" {{ _ariaLabel }} "
7
7
aria-labelledby =" {{ _ariaLabelledBy }} "
8
8
dir =" {{ effectiveDir }} "
9
- tabindex =" -1"
10
9
@keydown ={{ _onkeydown }}
11
10
@focusout ={{ _onfocusout }}
12
11
>
Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ class Popup extends UI5Element {
278
278
_onfocusout ( e ) {
279
279
// relatedTarget is the element, which will get focus. If no such element exists, focus the root
280
280
if ( ! e . relatedTarget ) {
281
+ this . _root . tabIndex = - 1 ;
281
282
this . _root . focus ( ) ;
282
283
}
283
284
}
@@ -334,6 +335,9 @@ class Popup extends UI5Element {
334
335
|| this . _root ; // in case of no focusable content focus the root
335
336
336
337
if ( element ) {
338
+ if ( element === this . _root ) {
339
+ element . tabIndex = - 1 ;
340
+ }
337
341
element . focus ( ) ;
338
342
}
339
343
}
You can’t perform that action at this time.
0 commit comments