File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/uui-base/lib/mixins Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ export const LabelMixin = <T extends Constructor<LitElement>>(
36
36
}
37
37
38
38
@state ( )
39
- private labelSlotHasContent = false ;
39
+ private _labelSlotHasContent = false ;
40
40
41
41
private labelSlotChanged ( e : any ) : void {
42
- this . labelSlotHasContent =
42
+ this . _labelSlotHasContent =
43
43
( e . target as HTMLSlotElement ) . assignedNodes ( { flatten : true } ) . length >
44
44
0 ;
45
45
}
@@ -51,12 +51,12 @@ export const LabelMixin = <T extends Constructor<LitElement>>(
51
51
*/
52
52
protected renderLabel ( ) {
53
53
return html `
54
- ${ this . labelSlotHasContent === false
54
+ ${ this . _labelSlotHasContent === false
55
55
? html `< span class ="label "> ${ this . label } </ span > `
56
56
: '' }
57
57
< slot
58
58
class ="label "
59
- style =${ this . labelSlotHasContent ? '' : 'visibility: hidden' }
59
+ style =${ this . _labelSlotHasContent ? '' : 'visibility: hidden' }
60
60
name =${ labelSlotName ? labelSlotName : '' }
61
61
@slotchange=${ this . labelSlotChanged } > </ slot >
62
62
` ;
You can’t perform that action at this time.
0 commit comments