Skip to content

[Feature Request] (Datepicker) should update selected date on input change  #13486

@hiepxanh

Description

@hiepxanh

Bug, feature request, or proposal:

feature request

What is the expected behavior?

update the highlight date every input change while the calendar open
(or we can create some method like: selectedDate method to update it, or updateDate method to trigger change detection)

What is the current behavior?

image
If I press next day button (update the input value) while the calendar open but still not update the highlight date. only I close and reopen datepicker, it will update value.

What are the steps to reproduce?

I think it simple and clear to understand. tell me if you need example repository.

What is the use-case or motivation for changing an existing behavior?

I have next day, and previous day button, with today button. I want to change date manually but the selected date not update

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

angular 6
material 6
typescript 3
chrome 60

Is there anything else we should know?

no

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsarea: material/datepicker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions