-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Describe the bug
When using the parameter VisibleWhen in association with whenTagName, choices do not appear when selecting the label tag name.
Below an example with screenshots of what I expect - and was working in version 1.7.3 - and what happens at the moment.
To Reproduce
Steps to reproduce the incorrect behavior:
- Install label studio version 1.8.0
- Create a new project and define the labeling interface as follows:
<View>
<View>
<Text name="text" value="$text" granularity="word"/>
</View>
<View>
<Labels name="name" toName="text">
<Label value="text_selection" background="red" alias="alias" granularity="word"/>
</Labels>
<View style="display: flex; flex-wrap: wrap;">
<View className="alias" style="margin: 2px;" visibleWhen="choice-selected" whenTagName="name">
<Choices name="choices" toName="text" choice="multiple" showInLine="true" required="true">
<Choice alias="yes" value="yes" selected="true" />
<Choice alias="no" value="no" />
</Choices>
</View>
</View>
</View>
</View>
- Try to select the label to see if the choice selection appears
- See error: the choice selection do not appear
Expected behavior
Choices should appear when selecting the label tag name (below an example of what I expect - and was working in version 1.7.3 - and what happens at the moment.
Steps to reproduce the correct behavior:
Try the same labeling interface on playground or install label studio version 1.7.3
Screenshots
Starting point:
What is expected (and happens in playground/when using label studio version 1.7.3):
What happens when using label studio version 1.8.0:
Environment (please complete the following information):
- OS: Windows/Linux/playground
- Label Studio Version 1.8.0
Additional context
Related to this, as an useful information, what is the label studio version installed on playground? Where can I find this information in future?