Skip to content

Provide a default value for the time part. #668

@javier-godoy

Description

@javier-godoy

In order to update the time value when the user changes the date (for instance, set the time part automatically to 00:00)
one cannot rely on the change event of the component (since no event will be fired until both date and time are set).

As a workaround, one needs to add a change listener to dateSlot:

 dateTimePicker.$.dateSlot.children[0].addEventListener('change', function(){this.$.timeSlot.children[0].value='00:00';}.bind(dateTimePicker));

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions