-
Notifications
You must be signed in to change notification settings - Fork 22
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
Read-only field #61
Comments
Hi @luizhop I'm glad you like it. This is currently not supported but is something we should definitely add support for. Will implement this feature within the upcoming 2 weeks. Feel free to contribute with this feature :) |
That's great @christopherafbjur. |
Hi @christopherafbjur finally I found some time to work on this. I am just starting with Sanity, React, Typescript and all this stuff, also this is my first contribution to a repository, so apologies for any bad or misplaced changes, specially the ones below I could notice. Skipped verification for committing and pushing to repoI was having issues on SearchResults (type check on the component and props import on the tests) and couldn't figure what was the best way to sort them. As I didn't do any changes on these files, I thought it could be something with my node version (20.9.0) and probably won't give you any issues when reviewing and building. Formatting changes on
|
Thank you for your contribution @luizhop and the well described challenges you faced. I will have a look at this and come back with an answer in the upcoming days. Merry X-Mas 🎅🏻 |
@christopherafbjur merry Xmas (a bit delayed 🐢) and happy new year 🌟 |
Many thanks for that @christopherafbjur, my pleasure being able to help 🙂 |
Hello 👋
First of all, thanks for this great plugin!
I am trying to disable the iconPicker field for certain user roles, but not being able to do that.
Tried to use
readOnly
property on iconPicker field schema, like on other primitive fields, but apparently is not working.Just to be sure I've tested adding it to other primitive fields like
string
and it worked.The HTML output I was expecting is something like this:
And the expected behaviour is the button to select the icon to be grey out and not clickable:
Is there another way to achieve that, or this is something not supported currently?
Thank you!
The text was updated successfully, but these errors were encountered: