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

Support for readonly (as opposed to disabled) #114

Open
jessevoogt opened this issue Aug 30, 2022 · 0 comments
Open

Support for readonly (as opposed to disabled) #114

jessevoogt opened this issue Aug 30, 2022 · 0 comments

Comments

@jessevoogt
Copy link

Is your feature request related to a problem? Please describe.
In trying to use this control to stand in for a regular text box, and to work like other controls on a page, there are times when a 'readonly' property would be preferred over the 'disabled' property. When a regular input type="text" is disabled, its value will not be sent when submitting the form, and it is not focusable. When it is readonly, its value is sent when submitting the form, and it is focusable, but just not editable. Currently, the duet date picker supports only a 'disabled' property, which behaves mostly like a native 'disabled' property with the exception that there is a hidden field that does get submitted with the value of the control.

Describe the solution you'd like
I suggest having both a 'disabled' and a 'readonly' property that mimic the behavior of the native controls as much as possible

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

1 participant