1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 19:53:59 +00:00

fix: [CL-601] add ngForm; remove standalone attributes

Signed-off-by: Ben Brooks <bbrooks@bitwarden.com>
This commit is contained in:
Ben Brooks
2025-06-26 13:21:17 -07:00
parent eb1fd5f7ed
commit 1f17f72964
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
<form
role="search"
#form="ngForm"
ngForm
(mouseenter)="isFormHovered.set(true)"
(mouseleave)="isFormHovered.set(false)"
class="tw-relative tw-flex tw-items-center tw-w-full"
@@ -19,9 +21,9 @@
[id]="id"
[placeholder]="placeholder ?? ('search' | i18n)"
class="tw-ps-9"
name="searchText"
[ngModel]="searchText"
(ngModelChange)="onChange($event)"
[ngModelOptions]="{ standalone: true }"
(focus)="isInputFocused.set(true)"
(blur)="isInputFocused.set(false); onTouch()"
[disabled]="disabled"

View File

@@ -31,7 +31,6 @@ let nextId = 0;
useExisting: SearchComponent,
},
],
standalone: true,
imports: [InputModule, ReactiveFormsModule, FormsModule, I18nPipe, NgIf, NgClass],
})
export class SearchComponent implements ControlValueAccessor, FocusableElement {