File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 14
14
</header >
15
15
{{ /if }}
16
16
17
- <div id =" {{ _id }} -before" tabindex =" 0" class =" ui5-list-focusarea" ></div >
17
+ {{ #if hasData }}
18
+ <div id =" {{ _id }} -before" tabindex =" 0" class =" ui5-list-focusarea" ></div >
19
+ {{ /if }}
18
20
19
21
<ul id =" {{ _id }} -listUl"
20
22
class =" ui5-list-ul"
46
48
</div >
47
49
{{ /if }}
48
50
49
- <div id =" {{ _id }} -after" tabindex =" 0" class =" ui5-list-focusarea" ></div >
51
+ {{ #if hasData }}
52
+ <div id =" {{ _id }} -after" tabindex =" 0" class =" ui5-list-focusarea" ></div >
53
+ {{ /if }}
50
54
</div >
Original file line number Diff line number Diff line change @@ -381,8 +381,12 @@ class List extends UI5Element {
381
381
return `${ this . _id } -header` ;
382
382
}
383
383
384
+ get hasData ( ) {
385
+ return this . items . length !== 0 ;
386
+ }
387
+
384
388
get showNoDataText ( ) {
385
- return this . items . length === 0 && this . noDataText ;
389
+ return ! this . hasData && this . noDataText ;
386
390
}
387
391
388
392
get showBusy ( ) {
You can’t perform that action at this time.
0 commit comments