Open
Description
Describe the bug
When using both the attribute alias and maxUsages in a label, maxUsages is not effective.
To Reproduce
Try to modify the playground example here as follows:
<View>
<Labels name="type" toName="txt-1">
<Label value="Brand" maxUsages="1"/>
<Label alias="P" value="Product" maxUsages="1" />
</Labels>
<Text name="txt-1" value="$text" />
</View>
Then try to annotate twice both the label "Brand" and the label "Product". The first action won't be allowed, while I could select as many times as I wanted the label "Product".
Expected behavior
The attribute maxUsage to be effective also when using the attribute alias.
Environment (please complete the following information):
- I used the playground.