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 option to not style input as readonly #85

Open
getup8 opened this issue Nov 3, 2015 · 3 comments
Open

Add option to not style input as readonly #85

getup8 opened this issue Nov 3, 2015 · 3 comments

Comments

@getup8
Copy link

getup8 commented Nov 3, 2015

That's it..

@getup8
Copy link
Author

getup8 commented Nov 3, 2015

Current workaround (unless I'm missing something..) is to set attrs to anything valid, even if you don't want to add any attributes.

DateWidget(attrs={'data-readonly': 'false'})

Why this happens:
https://github.com/asaglimbeni/django-datetime-widget/blob/master/datetimewidget/widgets.py#L182

@symbiosdotwiki
Copy link

+1 for this

@C-BERBER
Copy link

This helped to open my text portion of the field but the X and the other button are still greyed out... Any thoughts? Thanks

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

3 participants