Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VisibleWhen unexpected behavior in label studio version 1.8.0 #4386

Open
spagliarini opened this issue Jun 15, 2023 · 0 comments · May be fixed by HumanSignal/label-studio-frontend#1614
Open
Assignees

Comments

@spagliarini
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants