I’ve noticed that when I’ve default values such as booleans, they are only set when user interacts with the form. So I was wondering can I trigger autofocus when form is rendered?
The renderers then set Material UI’s autoFocus prop.
Regarding your code, you don’t need to switch between two JsonForms components to prevent handing over null. Setting data to undefined is the same as not handing it over so, so you can just use this: