Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar Displays Twice when setting MinDate from JS #89

Open
mrwrighty opened this issue Aug 11, 2021 · 0 comments
Open

Calendar Displays Twice when setting MinDate from JS #89

mrwrighty opened this issue Aug 11, 2021 · 0 comments

Comments

@mrwrighty
Copy link

mrwrighty commented Aug 11, 2021

I'm using the following code to set the MinDate, based on the date from another datetimepicker:-

<datetime:DatePickerField id="enddate" locale="en_GB" row="0" col="2" hint="Select End Date" class="date" isEnabled="false" datePickerClosed="setenddate" datePickerOpened="onEndDateTap"/>

export function onEndDateTap(args){ var startdate = args.object.page.getViewById("startdate"); var leavestart = new Date(startdate.text); DateTimePicker.pickDate({ minDate: leavestart }) }

Whether I use tap or datePickerOpened, the calendar is displaying twice, one on top of the other. The Custom version from code displays on top, with a non custom version below. I have to click a date on each for them to both close.

NS 8.0.2
@nativescript/datetimepicker 2.1.6
iOS and Android

calendar.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant