Skip to content

Commit 685ccfe

Browse files
author
esuau
committed
fix(search): Change condition to display clear button
1 parent b71cd24 commit 685ccfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search/search.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class SearchChange {
6767
<button
6868
class="bx--search-close"
6969
[ngClass]="{
70-
'bx--search-close--hidden': !value || value === 0
70+
'bx--search-close--hidden': !value || value.length === 0
7171
}"
7272
[title]="clearButtonTitle"
7373
[attr.aria-label]="clearButtonTitle"

0 commit comments

Comments
 (0)