Skip to content

Commit 472e9fc

Browse files
authored
chore: unified text and value properties for Topic-P (SAP#9318)
Properties types and default values of text and value of Topic-P components are now unifed.
1 parent 9045bfb commit 472e9fc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/fiori/src/ShellBarItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ShellBarItem extends UI5Element {
5454
* @public
5555
*/
5656
@property()
57-
text?: string;
57+
text = "";
5858

5959
/**
6060
* Defines the count displayed in the top-right corner.

packages/main/src/CheckBox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class CheckBox extends UI5Element implements IFormInputElement {
194194
* @public
195195
*/
196196
@property()
197-
text?: string;
197+
text = "";
198198

199199
/**
200200
* Defines the value state of the component.

packages/main/src/TreeItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TreeItem extends TreeItemBase {
3737
* @default undefined
3838
*/
3939
@property()
40-
text?: string;
40+
text = "";
4141

4242
/**
4343
* Defines the `additionalText`, displayed in the end of the tree item.

0 commit comments

Comments
 (0)