Bugfix - dataToOptions
In attachDatePickerEvents function for component element use the same pattern to find when toggle the class than in the init function.
Merge pull request #428 from zpaulovics/bugfix-dataToOptions

Bugfix - dataToOptions