File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 8
8
@keyup =" {{ _onkeyup }} "
9
9
tabindex ={{ forcedTabIndex }}
10
10
href =" {{ targetSrc }} "
11
- target =" {{ target }} " >
11
+ target =" {{ _effectiveTarget }} " >
12
12
{{> item }}
13
13
</a >
14
14
{{ else }}
Original file line number Diff line number Diff line change @@ -92,11 +92,13 @@ class ProductSwitchItem extends UI5Element implements IProductSwitchItem {
92
92
* - `_blank`
93
93
* - `_parent`
94
94
* - `_search`
95
- * @default "_self"
95
+ *
96
+ * **Note:** By default target will be open in the same frame as it was clicked.
97
+ * @default undefined
96
98
* @public
97
99
*/
98
100
@property ( )
99
- target = "_self" ;
101
+ target ?: string ;
100
102
101
103
/**
102
104
* Defines the component target URI. Supports standard hyperlink behavior.
@@ -154,6 +156,10 @@ class ProductSwitchItem extends UI5Element implements IProductSwitchItem {
154
156
this . active = true ;
155
157
}
156
158
159
+ get _effectiveTarget ( ) {
160
+ return this . target || "_self" ;
161
+ }
162
+
157
163
_onkeydown ( e : KeyboardEvent ) {
158
164
if ( isSpace ( e ) || isEnter ( e ) ) {
159
165
this . active = true ;
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ import type { IComboBoxItem } from "./ComboBox.js";
19
19
class ComboBoxItemGroup extends UI5Element implements IComboBoxItem {
20
20
/**
21
21
* Defines the text of the component.
22
- * @default ""
22
+ * @default undefined
23
23
* @public
24
24
*/
25
25
@property ( )
26
- headerText = "" ;
26
+ headerText ?: string ;
27
27
28
28
/**
29
29
* Indicates whether the item is focused
Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ import type MultiComboBoxItem from "./MultiComboBoxItem.js";
20
20
class MultiComboBoxItemGroup extends UI5Element implements IMultiComboBoxItem {
21
21
/**
22
22
* Defines the text of the component.
23
- * @default ""
23
+ * @default undefined
24
24
* @public
25
25
*/
26
26
@property ( )
27
- headerText = "" ;
27
+ headerText ?: string ;
28
28
29
29
/**
30
30
* Defines the items of the <code>ui5-mcb-item-group</code>.
You can’t perform that action at this time.
0 commit comments