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

Being able to manually insert a date in the date field. #103

Open
paaljoachim opened this issue Feb 12, 2022 · 1 comment
Open

Being able to manually insert a date in the date field. #103

paaljoachim opened this issue Feb 12, 2022 · 1 comment

Comments

@paaljoachim
Copy link

Describe the bug
Manually clicking into the date field by adding a date the date will not be read.

Here is an issue at the My Calendar WordPress plugin repo which uses the date picker:
joedolson/my-calendar#438

Expected behavior
I expected that one would be able to manually add a date by clicking into the date field and writing a date YYYY.MM.DD or YYYY-MM-DD. It seems the date becomes active only on clicking the date picker button and selecting a date.

Screenshots

Manually adding a date. It says Daily - 500 times because the date is not being read (looks like it can not be read).
Screenshot 2022-02-12 at 14 51 08

Clicking the date picker and selecting a date. The date is read.
Screenshot 2022-02-12 at 14 51 24

It would be great to get this fixed. Thank you!

@WickyNilliams
Copy link
Contributor

The date picker needs to be configured to accept different date formats. It only works with ISO format out of the box. If the entered date is valid, a change event is fired, then you can update the UI. See the example "Getting selected value" in the docs https://duetds.github.io/date-picker/

Doesn't seem like a bug this end

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

No branches or pull requests

2 participants