Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant