Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

DateTimePicker does not correctly handle disabled dates #302

Open
FrankW76 opened this issue Apr 14, 2016 · 2 comments
Open

DateTimePicker does not correctly handle disabled dates #302

FrankW76 opened this issue Apr 14, 2016 · 2 comments

Comments

@FrankW76
Copy link
Contributor

When you disable dates in a DateTimePicker by using for example setStartDate and setEndDate this only works when the user tries to pick a Date with the Mouse.

The dates will be grayed out, and not selectable by clicking on them.
The user can however enter invalid dates using the keyboard, and these will be accepted. These should be rejected and the DateTimePicker should reset to the last valid selected DateTime.

@crevete
Copy link
Contributor

crevete commented Apr 14, 2016

This is certainly a bug of the native JS lib. But as you can see in their demo page, all input elements are readonly. The manual input by user is not allowed. Maybe we should disable by default all date time picker ?

@FrankW76
Copy link
Contributor Author

I tried with the native JS lib without readonly and as you said, it is a bug in the native library.

I am going to try to create a workaround in the GWT library for this... As I am not a Javascript guy.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants