mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(date-picker): Date picker changed check (#4797)
This commit is contained in:
committed by
SvetoslavTsenov
parent
28b6eba9ac
commit
d0b3e0c536
@@ -102,7 +102,7 @@ export class DatePicker extends DatePickerBase {
|
|||||||
|
|
||||||
[dateProperty.setNative](value: Date) {
|
[dateProperty.setNative](value: Date) {
|
||||||
const nativeView = this.nativeViewProtected;
|
const nativeView = this.nativeViewProtected;
|
||||||
if (nativeView.getDayOfMonth() !== value.getDay()
|
if (nativeView.getDayOfMonth() !== value.getDate()
|
||||||
|| nativeView.getMonth() !== value.getMonth()
|
|| nativeView.getMonth() !== value.getMonth()
|
||||||
|| nativeView.getYear() !== value.getFullYear()) {
|
|| nativeView.getYear() !== value.getFullYear()) {
|
||||||
nativeView.updateDate(value.getFullYear(), value.getMonth(), value.getDate());
|
nativeView.updateDate(value.getFullYear(), value.getMonth(), value.getDate());
|
||||||
|
|||||||
Reference in New Issue
Block a user