Optionset field disappears after value is set

Enonic version: 7.1.3
OS: Windows 10

There’s a weird bug where the option-set field of a part disappears if there’s a value set after refreshing the Content Studio page.

optionset2

For some reason adding an empty part above, clicking the new part and then the part I’m working on seems to make the options visible again. (Or delete the part and recreate it)

optionset1

Here’s the code for the optionset:

        <label>Lenke</label>
        <expanded>false</expanded>
        <occurrences minimum="1" maximum="1"/>
        <options minimum="1" maximum="1">
            <option name="optionLink">
                <label>URL</label>
                <default>true</default>
                <items>
                    <input name="link" type="TextLine">
                        <label>Lenke</label>
                        <occurrences minimum="0" maximum="1"/>
                        <default>/</default>
                    </input>
                </items>
            </option>
            <option name="optionXPContent">
                <label>XP-innhold</label>
                <items>
                    <input name="xpContent" type="ContentSelector">
                        <label>Innhold i XP</label>
                        <occurrences minimum="0" maximum="1"/>
                        <config>
                            <allowPath>${site}</allowPath>
                        </config>
                    </input>
                </items>
            </option>
        </options>
    </option-set>

I don’t know if it has a say but the part uses React4xp/react components.

Does sound like a bug… The framework in use should not affect the Content Studio UI.

We have reproduced the issue and registered a bug here. Will be fixed in a next release.

1 Like