Skip to content

Commit

Permalink
docs(material/form-field): unable to toggle icon in demo file (#29354)
Browse files Browse the repository at this point in the history
Fixes a bug in demo file where icon cannot be toggled. This is because `signal` was not called correctly

(cherry picked from commit ccb9969)
  • Loading branch information
abdulloh-abid authored and crisbeto committed Jul 5, 2024
1 parent 6c71f8a commit 47b32b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {MatInputModule} from '@angular/material/input';
export class FormFieldPrefixSuffixExample {
hide = signal(true);
clickEvent(event: MouseEvent) {
this.hide.set(!this.hide);
this.hide.set(!this.hide());
event.stopPropagation();
}
}

0 comments on commit 47b32b0

Please sign in to comment.