Issue with locked input fields in Sanity Studio and a solution involving adding a hidden field with a default value.
Last updated: Nov 12, 2021
is there a simple fix for locked input fields when using
? i remember seeing the issue is something to do with a lost focus due to the tabs and can be solved with initial values
Nov 11, 2021, 12:22 PM
Hey User! To clarify, are the fields becoming
? In terms of using initial value, just a shot in the dark, but if you set them to something like an empty string does it work?
Nov 12, 2021, 4:53 PM
hi, they are not becoming read only, they look and act like normal input fields but don’t track any input that goes in. this is also happening inside objects without the tabs plugin, so forget that piece
Nov 12, 2021, 6:09 PM
What version of the Studio are you running and can you share an example of the schema where this is happening?
Nov 12, 2021, 6:14 PM
this is happening on one document in particular, and the fields that are not updating are part of an
inside the document
Nov 12, 2021, 6:15 PM
i’ve just updated now to the latest version of the studio, i was on an outdated version previously