Datepicker form element always dirty

Hello,

I’ve made a snippet to demonstrate this (maybe) a bug
http://webix.com/snippet/ca3b9719

When datepicker value does not change, it return by getDirtyValues() function.

If you click on submit button, you’ll see a console.log message.

Text field behaviour is fine.

Hello,

you pass string value and Datepicker returns value as Date object by default.

You can apply stringResult: true to Datepicker and pass date string in webix.i18n.parseFormat format. This format is “%Y-%m-%d %H:%i” by default. In this case, getDirtyValues() will return an empty object:

http://webix.com/snippet/e0ea1302

Thanks, this works.