File tree 3 files changed +2
-14
lines changed
3 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -128,12 +128,6 @@ class ProductSwitch extends UI5Element {
128
128
129
129
onBeforeRendering ( ) {
130
130
this . desktopColumns = this . items . length > 6 ? 4 : 3 ;
131
-
132
- this . items . forEach ( item => {
133
- item . _accInfo = {
134
- role : "listitem" ,
135
- } ;
136
- } ) ;
137
131
}
138
132
139
133
_handleResize ( ) {
@@ -163,9 +157,7 @@ class ProductSwitch extends UI5Element {
163
157
_onkeydown ( event ) {
164
158
if ( isDown ( event ) ) {
165
159
this . _handleDown ( event ) ;
166
- }
167
-
168
- if ( isUp ( event ) ) {
160
+ } else if ( isUp ( event ) ) {
169
161
this . _handleUp ( event ) ;
170
162
}
171
163
}
Original file line number Diff line number Diff line change 13
13
</a >
14
14
{{ else }}
15
15
<div
16
- role =" {{ _accInfo.role }} "
16
+ role =" listitem "
17
17
class =" ui5-product-switch-item-root"
18
18
data-sap-focus-ref
19
19
@focusout =" {{ _onfocusout }} "
Original file line number Diff line number Diff line change @@ -102,10 +102,6 @@ const metadata = {
102
102
defaultValue : "-1" ,
103
103
noAttribute : true ,
104
104
} ,
105
-
106
- _accInfo : {
107
- type : Object ,
108
- } ,
109
105
} ,
110
106
slots : /** @lends sap.ui.webcomponents.fiori.ProductSwitchItem.prototype */ {
111
107
} ,
You can’t perform that action at this time.
0 commit comments