File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- LwpwazozKyw2R4uvmZVLv5VZq7E=
1
+ LwpwazozKyw2R4uvmZVLv5VZq7E=
Original file line number Diff line number Diff line change @@ -219,13 +219,13 @@ class Icon extends UI5Element {
219
219
this . createGlobalStyle ( ) ; // hide all icons until the first icon has rendered (and added the Icon.css)
220
220
}
221
221
222
- _onfocusin ( event ) {
222
+ _onFocusInHandler ( event ) {
223
223
if ( this . interactive ) {
224
224
this . focused = true ;
225
225
}
226
226
}
227
227
228
- _onfocusout ( event ) {
228
+ _onFocusOutHandler ( event ) {
229
229
this . focused = false ;
230
230
}
231
231
@@ -280,7 +280,7 @@ class Icon extends UI5Element {
280
280
}
281
281
282
282
get tabIndex ( ) {
283
- return this . interactive ? "0" : "-1" ;
283
+ return this . interactive ? "0" : undefined ;
284
284
}
285
285
286
286
get isDecorative ( ) {
@@ -348,6 +348,8 @@ class Icon extends UI5Element {
348
348
this . packageName = iconData . packageName ;
349
349
350
350
this . _onclick = this . interactive ? this . _onClickHandler . bind ( this ) : undefined ;
351
+ this . _onfocusout = this . interactive ? this . _onFocusOutHandler . bind ( this ) : undefined ;
352
+ this . _onfocusin = this . interactive ? this . _onFocusInHandler . bind ( this ) : undefined ;
351
353
352
354
if ( this . accessibleName ) {
353
355
this . effectiveAccessibleName = this . accessibleName ;
You can’t perform that action at this time.
0 commit comments