We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8226f85 commit 1c00e48Copy full SHA for 1c00e48
src/app/date-picker/date-picker.directive.ts
@@ -231,7 +231,7 @@ export class DatePickerDirective implements OnInit {
231
this.datePicker.init();
232
233
if (this.datePicker.componentConfig.disableKeypress) {
234
- this.elemRef.nativeElement.setAttribute('readonly');
+ this.elemRef.nativeElement.setAttribute('readonly', true);
235
} else {
236
this.elemRef.nativeElement.removeAttribute('readonly');
237
}
0 commit comments