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:
@@ -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"
|
||||
|
||||
@@ -31,7 +31,6 @@ let nextId = 0;
|
||||
useExisting: SearchComponent,
|
||||
},
|
||||
],
|
||||
standalone: true,
|
||||
imports: [InputModule, ReactiveFormsModule, FormsModule, I18nPipe, NgIf, NgClass],
|
||||
})
|
||||
export class SearchComponent implements ControlValueAccessor, FocusableElement {
|
||||
|
||||
Reference in New Issue
Block a user