File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
packages/base/src/features Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 1
1
import { getFeature , registerFeature } from "../FeaturesRegistry.js" ;
2
2
import { isF6Next , isF6Previous } from "../Keys.js" ;
3
- import { instanceOfUI5Element } from "../UI5Element.js" ;
4
3
import { getFirstFocusableElement } from "../util/FocusableElements.js" ;
5
4
import getFastNavigationGroups from "../util/getFastNavigationGroups.js" ;
6
5
import isElementClickable from "../util/isElementClickable.js" ;
@@ -41,18 +40,12 @@ class F6Navigation {
41
40
}
42
41
43
42
async groupElementToFocus ( nextElement : HTMLElement ) {
44
- let nextElementDomRef = nextElement ;
45
-
46
- if ( instanceOfUI5Element ( nextElement ) ) {
47
- nextElementDomRef = nextElement . getDomRef ( ) || nextElement . firstElementChild as HTMLElement ;
48
- }
49
-
50
- if ( nextElementDomRef ) {
51
- if ( isElementClickable ( nextElementDomRef ) ) {
52
- return nextElementDomRef ;
43
+ if ( nextElement ) {
44
+ if ( isElementClickable ( nextElement ) ) {
45
+ return nextElement ;
53
46
}
54
47
55
- const elementToFocus = await getFirstFocusableElement ( nextElementDomRef ) ;
48
+ const elementToFocus = await getFirstFocusableElement ( nextElement ) ;
56
49
57
50
if ( elementToFocus ) {
58
51
return elementToFocus ;
You can’t perform that action at this time.
0 commit comments