Fixed a bug where the style was not applied
Rise the 'onChange' event on parent input
Added support for changing the format with 'date-format' attribute