mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
turn off autocomplete for browser search input (#12679)
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<bit-search
|
<bit-search
|
||||||
|
autocomplete="off"
|
||||||
[placeholder]="'search' | i18n"
|
[placeholder]="'search' | i18n"
|
||||||
[(ngModel)]="searchText"
|
[(ngModel)]="searchText"
|
||||||
(ngModelChange)="onSearchTextChanged()"
|
(ngModelChange)="onSearchTextChanged()"
|
||||||
|
|||||||
@@ -18,5 +18,6 @@
|
|||||||
(ngModelChange)="onChange($event)"
|
(ngModelChange)="onChange($event)"
|
||||||
(blur)="onTouch()"
|
(blur)="onTouch()"
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
|
[attr.autocomplete]="autocomplete"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ export class SearchComponent implements ControlValueAccessor, FocusableElement {
|
|||||||
|
|
||||||
@Input() disabled: boolean;
|
@Input() disabled: boolean;
|
||||||
@Input() placeholder: string;
|
@Input() placeholder: string;
|
||||||
|
@Input() autocomplete: string;
|
||||||
|
|
||||||
getFocusTarget() {
|
getFocusTarget() {
|
||||||
return this.input.nativeElement;
|
return this.input.nativeElement;
|
||||||
|
|||||||
Reference in New Issue
Block a user