Skip to content

Commit 1c00e48

Browse files
committed
resolves #267
1 parent 8226f85 commit 1c00e48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/date-picker/date-picker.directive.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export class DatePickerDirective implements OnInit {
231231
this.datePicker.init();
232232

233233
if (this.datePicker.componentConfig.disableKeypress) {
234-
this.elemRef.nativeElement.setAttribute('readonly');
234+
this.elemRef.nativeElement.setAttribute('readonly', true);
235235
} else {
236236
this.elemRef.nativeElement.removeAttribute('readonly');
237237
}

0 commit comments

Comments
 (0)