Skip to content

Commit 13e3966

Browse files
JeanMechethePunderWoman
authored andcommitted
docs(docs-infra): only show clear button of textfield when there is a text (angular#61427)
PR Close angular#61427
1 parent e4d2347 commit 13e3966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adev/shared-docs/components/text-field/text-field.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class="docs-text-field"
1212
/>
1313

14-
@if (resetLabel()) {
14+
@if (resetLabel() && inputRef.value.length > 0) {
1515
<button
1616
type="reset"
1717
[title]="resetLabel()"

0 commit comments

Comments
 (0)