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

Add datetime-local to the list of supported widgets #678

Open
etamponi opened this issue Sep 6, 2024 · 0 comments
Open

Add datetime-local to the list of supported widgets #678

etamponi opened this issue Sep 6, 2024 · 0 comments

Comments

@etamponi
Copy link

etamponi commented Sep 6, 2024

Problem

<input type="datetime-local">

This is an HTML5 widget [0], fully supported by Bootstrap, but it is not listed as a supported widget. This causes some issues: for example, I can't use addon_after.

How to fix

Just adding "datetime-local" to FieldRenderer.is_form_control_widget seems to be enough to make it work.

[0] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local

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