Skip to content

Filter does not work for "Choices" tags #7347

@ctanveer

Description

@ctanveer

Describe the bug
Filter is not working for "Choices" tag

To Reproduce
Steps to reproduce the behavior:

  1. Create a new project
  2. Go to Settings -> Labelling Interface
  3. Copy paste the following XML
<View>
    <View style="display: flex; align-items: start; gap: 8px; flex-direction: column; white-space: pre-wrap;">
        <Text name="text" value="$text" granularity="word"/>
    </View>
    <Filter name="filter" toName="category" hotkey="shift+f" minlength="0" placeholder="Search"/>
    <Choices name="category" toName="text" choice="multiple" showInLine="false" required="true">
		<Choice value="oak"/>
		<Choice value="pine"/>
		<Choice value="maple"/>
		<Choice value="birch"/>
		<Choice value="elm"/>
		<Choice value="cedar"/>
    </Choices>
</View>
  1. Input text in filter box
  2. As you type, no filtering happens. List of choices remains as it is.

Expected behavior
Filtered set of choices, after any text is input in the filter box

Screenshots
should just show option "maple"
Image

Environment (please complete the following information):

  • OS: Ubuntu 24
  • Label Studio Version 1.17.0

Metadata

Metadata

Assignees

No one assigned

    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