Skip to content

VisibleWhen unexpected behavior in label studio version 1.8.0 #4386

Open
HumanSignal/label-studio-frontend
#1614
@spagliarini

Description

@spagliarini

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:

  1. Install label studio version 1.8.0
  2. 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>
  1. Try to select the label to see if the choice selection appears
  2. 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:

image

What is expected (and happens in playground/when using label studio version 1.7.3):

image

What happens when using label studio version 1.8.0:
image

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions