Skip to content

Commit

Permalink
fix(module:date-picker,time-picker): disable autocomplete completely (#…
Browse files Browse the repository at this point in the history
…7088)

- close #6718
  • Loading branch information
cipchk committed Dec 16, 2021
1 parent 3f4a704 commit bddc537
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/date-picker/date-picker.component.ts
Expand Up @@ -95,6 +95,7 @@ export type NzDatePickerSizeType = 'large' | 'default' | 'small';
[(ngModel)]="inputValue"
placeholder="{{ getPlaceholder() }}"
[size]="inputSize"
autocomplete="off"
(focus)="onFocus($event)"
(focusout)="onFocusout($event)"
(ngModelChange)="onInputChange($event)"
Expand Down Expand Up @@ -130,6 +131,7 @@ export type NzDatePickerSizeType = 'large' | 'default' | 'small';
[disabled]="nzDisabled"
[readOnly]="nzInputReadOnly"
[size]="inputSize"
autocomplete="off"
(click)="onClickInputBox($event)"
(focusout)="onFocusout($event)"
(focus)="onFocus($event, partType)"
Expand Down
1 change: 1 addition & 0 deletions components/time-picker/time-picker.component.ts
Expand Up @@ -52,6 +52,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'timePicker';
[attr.id]="nzId"
type="text"
[size]="inputSize"
autocomplete="off"
[placeholder]="nzPlaceHolder || (i18nPlaceHolder$ | async)"
[(ngModel)]="inputValue"
[disabled]="nzDisabled"
Expand Down

0 comments on commit bddc537

Please sign in to comment.