Skip to content

Commit 790ff22

Browse files
abdulloh-abidcrisbeto
authored andcommitted
docs(material/form-field): unable to toggle icon in demo file (#29354)
Fixes a bug in demo file where icon cannot be toggled. This is because `signal` was not called correctly (cherry picked from commit ccb9969)
1 parent 6142d6a commit 790ff22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components-examples/material/form-field/form-field-prefix-suffix/form-field-prefix-suffix-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {MatInputModule} from '@angular/material/input';
1616
export class FormFieldPrefixSuffixExample {
1717
hide = signal(true);
1818
clickEvent(event: MouseEvent) {
19-
this.hide.set(!this.hide);
19+
this.hide.set(!this.hide());
2020
event.stopPropagation();
2121
}
2222
}

0 commit comments

Comments
 (0)