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

html input readonly attribute #674

Closed
cunneen opened this issue Dec 23, 2019 · 1 comment · Fixed by #835
Closed

html input readonly attribute #674

cunneen opened this issue Dec 23, 2019 · 1 comment · Fixed by #835
Assignees
Labels
Help Wanted Orphaned and discontinued issues that need your help Type: Feature New features and feature requests
Milestone

Comments

@cunneen
Copy link

cunneen commented Dec 23, 2019

Hi, the readonly attribute of an html input doesn't seem to be supported. I want to use it in the case where one of the fields is calculated from others, so that the user sees and submits the value but can't modify it via the UI.

The disabled attribute doesn't fit my case as I want it to be styled appropriately via bootstrap themes and submitted accordingly.

edit: I'm using SimpleSchema and Bootstrap 3.

@radekmie radekmie self-assigned this Jan 8, 2020
@radekmie radekmie added Type: Feature New features and feature requests Help Wanted Orphaned and discontinued issues that need your help labels Jan 8, 2020
@radekmie
Copy link
Contributor

radekmie commented Jan 8, 2020

Hi @cunneen. It was actually requested a few times already - both on Gitter and here (e.g. #628). Up to this point, we were strongly against, as it's hard to support it across all themes in a consistent way. Right now, thinking about v3 (#646), I think we can actually do it. It'll require some work in the core (probably easy as soon as we'll manage the context extensions properly) and definitely more work in the themes. But the good thing about it is that we don't have to do it all at once - one at a time is OK.

The plan is as follows:

  • Update (preferably) all themes to respect the readonly prop. That's something we can introduce right now, as a feature. It can be done by anybody, especially by outside collaborators just like you!
  • Update the core to pass the readonly prop in the same manner as disabled right now. This part is actually bigger, preferably doable in v3.
  • If both above are done, officially support read-only mode in uniforms, stating it in the documentation.

@radekmie radekmie added this to the v3 milestone Jan 22, 2020
@radekmie radekmie modified the milestones: v3.0, v3.x Jun 6, 2020
martachrzanowska added a commit that referenced this issue Dec 7, 2020
martachrzanowska added a commit that referenced this issue Dec 8, 2020
martachrzanowska added a commit that referenced this issue Dec 8, 2020
martachrzanowska added a commit that referenced this issue Dec 14, 2020
@radekmie radekmie modified the milestones: v3.x, v3.1 Dec 21, 2020
radekmie pushed a commit that referenced this issue Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Orphaned and discontinued issues that need your help Type: Feature New features and feature requests
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants