]> source.dussan.org Git - vaadin-framework.git/commit
Don't reset date to current at DateField state (e.g. read-only) updates. (#11879) pr11907/r2
authorAnna Koskinen <Ansku@users.noreply.github.com>
Tue, 28 Jan 2020 10:34:22 +0000 (12:34 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Jan 2020 10:34:22 +0000 (12:34 +0200)
commit75caa0488dee5b59f37d5691430c01de0b55c2db
treea58c3fb8fb1fa29a80d97ce982ac3acb6a78a0f5
parent2aa2de52f0c532f4a6f400b16eb08c340fc80f02
Don't reset date to current at DateField state (e.g. read-only) updates. (#11879)

- DateFields with month or year resolution should not get their date
reset to current date if the field's state is updated (e.g. by changing
read-only status or adding a range).

Fixes: #11864, #11605
client/src/main/java/com/vaadin/client/ui/VAbstractCalendarPanel.java
uitest/src/main/java/com/vaadin/tests/components/datefield/DateFieldMonthResolutionStatusChange.java [new file with mode: 0644]
uitest/src/test/java/com/vaadin/tests/components/datefield/DateFieldMonthResolutionStatusChangeTest.java [new file with mode: 0644]