-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
Description
I have a set of form components made up of nested instances. I am trying to use nestedProps so we can toggle the different properties on and off. If I have it render the value from the property, it will use whatever the default setting is on the first render in the code example, but if you try to toggle any values, it does nothing.
Anything outside the nestedProps, e.g. validation property, works fine.
What is interesting to note is that it works fine on another form component with the same setup, which makes me think it's just a bug.
Version: 1.3.5
OS: Mac
I have tried a few things that didn't help
- confirmed labels all match
- Tested in both the Desktop App and Web interface.
- changed the name of the layer to remove the dot in the middle
- tried exposing the properties.
- Tried setting up a code connect file for the formElement.labelGroup specifically
- unpublished and republished in case it got into a bad state
- I unpublished left for a couple of days, cleared my local cache republish same issue.
Am I missing something really obvious here? Could it have gotten into a bad state and i need to reset or something?
Example code:
figma.connect(RadioGroup, figmaUrl, {
props: {
labelDisabledProps: figma.nestedProps("formElement.labelGroup", {
disabled: figma.boolean("isDisabled", {
true: "true",
false: undefined,
}),
}),
},
example: ({ labelDisabledProps }) => (
<RadioGroup disabled={labelDisabledProps.disabled} label="label" value="value" onChange={() => {}}>
<RadioButton value="value1" label="label1" name="radio-group" />
</RadioGroupNew>
),
});
Screenshot from Figma
