Skip to content

Commit

Permalink
fix: set correct error state based on formField
Browse files Browse the repository at this point in the history
  • Loading branch information
goetzrobin committed Oct 26, 2023
1 parent 4fbe6d1 commit 242ba79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/app/src/app/shared/input-error/input-error.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export class SpartanInputErrorDirective implements OnInit {
this._signalInput?.formField?.touchedState() === 'TOUCHED' &&
Object.values(this._signalInput?.formField?.errors() ?? {}).length > 0
) {
if (this._label) this._label.variant = 'error';
if (this._label) this._label.error = true;
} else {
if (this._label) this._label.variant = 'default';
if (this._label) this._label.error = 'auto';
}
},
{
Expand Down

1 comment on commit 242ba79

@vercel
Copy link

@vercel vercel bot commented on 242ba79 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

spartan – ./

spartan-git-main-goetzrobin.vercel.app
spartan.ng
spartan-goetzrobin.vercel.app
www.spartan.ng

Please sign in to comment.