Skip to content

disableKeypress doesn't work on the directive #267

Closed
@miyolou

Description

@miyolou

Directive Input
<input [dpDayPicker]="directiveConfig" mode="day" [(ngModel)]="date">

Component Input
<dp-date-picker [config]="directiveConfig" mode="day" [(ngModel)]="date2">

directiveConfig = {
disableKeypress: true;
}

https://stackblitz.com/edit/angular-pgjndr?file=app%2Fapp.component.html

Browser seems to complain about setAttribute on Element requiring 2 arguments instead of one. Still works on the component datepicker thought, if you comment out the Directive date picker in the stackblitz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions