Skip to content

Commit

Permalink
Handle floatLabel for admin_ids (#4079)
Browse files Browse the repository at this point in the history
If the controller is not empty, label should float, else we have the error
effect like in here.
  • Loading branch information
reiterl authored Sep 4, 2024
1 parent 85ea660 commit 988c6d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/app/ui/base/base-form-field-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export abstract class BaseFormFieldControlComponent<T>
@HostBinding() public id = `base-form-control-${BaseFormFieldControlComponent.nextId++}`;

@HostBinding(`class.floating`) public get shouldLabelFloat(): boolean {
return (this.focused || !this.empty) && !this.disabled;
return (this.focused && !this.disabled) || !this.empty;
}

@HostBinding(`attr.aria-describedby`) public describedBy = ``;
Expand Down

0 comments on commit 988c6d2

Please sign in to comment.