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

required: true does not work properly with date fields. #1743

Closed
peterboorsma opened this issue Aug 21, 2020 · 6 comments · Fixed by #1747, #1768 or #2377
Closed

required: true does not work properly with date fields. #1743

peterboorsma opened this issue Aug 21, 2020 · 6 comments · Fixed by #1747, #1768 or #2377
Labels
🐛 tag: bug This is a bug.

Comments

@peterboorsma
Copy link
Contributor

When adding the required: true option to a date field causes Bolt to behave unexpectedly. The date editor keeps popping up when trying to save the record.
See this screencast for an example:

My contenttype:

        date_to:
            type: date
            default: "first day of this month"
            required: true

Bolt 4.0.0. RC35

@I-Valchev I-Valchev added the 🐛 tag: bug This is a bug. label Aug 21, 2020
@bobdenotter
Copy link
Member

Thanks!

For reference, it's related to this: flatpickr/flatpickr#892

@bobdenotter
Copy link
Member

Re-opening. This is not fixed, as the Flatpicker component is a particularly stubborn little piece of software.

@eduardomart
Copy link
Contributor

eduardomart commented Sep 3, 2020

Is this meant to be fixed in RC41? I am still having problems with it
Screen Shot 2020-09-02 at 4 54 14 PM

Issue occurs in Firefox and Safari

More info:
My date field has required: true but I can't save, no matter what date I pick

Possible temp workaround:
Once you select a date from the picker, the input lets you temporarily type a date manually, if you type something like: mm/dd/yyyy the record can be saved

@eduardomart
Copy link
Contributor

@peterboorsma is this working correctly for you? it seems it's still an issue on 4.1.4 for me, I can pick a date when I first create a record, but if later I come back and clear it and pick a new date, I can't never save the record again, unless I do the workaround I mentioned above.

@peterboorsma
Copy link
Contributor Author

The problem does not seem to be solved in Bolt 4.1.4. It shows exactly the same behaviour as described initially in this issue.

@peterboorsma peterboorsma reopened this Oct 28, 2020
@peterboorsma
Copy link
Contributor Author

Reopened because the issue isn't solved...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 tag: bug This is a bug.
Projects
None yet
4 participants