mezoistvan / ng2-flatpickr

Angular 2+ wrapper for flatpickr (https://github.com/chmln/flatpickr)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug - enable option should support function

li-boxuan opened this issue · comments

According to flatpickr documentation and code, enable can be an array of functions.

https://github.com/flatpickr/flatpickr/blob/7bd701c656d5946f10328f9ae874c0d80bd46f1b/src/types/options.ts#L9

However, ng2-flatpickr defines enable as an array of string/date.

enable?: Array<string | Date>;

For now, I use

// @ts-ignore

to ignore typescript error as a workaround.