Skip to content

Commit

Permalink
turn off autocomplete for browser search input (#12679)
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin authored Jan 3, 2025
1 parent c69278e commit 05d373d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<bit-search
autocomplete="off"
[placeholder]="'search' | i18n"
[(ngModel)]="searchText"
(ngModelChange)="onSearchTextChanged()"
Expand Down
1 change: 1 addition & 0 deletions libs/components/src/search/search.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
(ngModelChange)="onChange($event)"
(blur)="onTouch()"
[disabled]="disabled"
[attr.autocomplete]="autocomplete"
/>
</div>
1 change: 1 addition & 0 deletions libs/components/src/search/search.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class SearchComponent implements ControlValueAccessor, FocusableElement {

@Input() disabled: boolean;
@Input() placeholder: string;
@Input() autocomplete: string;

getFocusTarget() {
return this.input.nativeElement;
Expand Down

0 comments on commit 05d373d

Please sign in to comment.