Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Support for Select All Filtered #46

Open

Description

@xiaoyunyang

Can we add the capability to select all filtered options?

Currently, it's possible to filter options using keywords, which updates SelectList accordingly. However, the SelectItem associated with the "select all" checkbox only operates on the original options, rather than the filtered options.

{hasSelectAll &&
<SelectItem
focused={focusIndex === 0}
checked={this.allAreSelected()}
option={selectAllOption}
onSelectionChanged={this.selectAllChanged}
onClick={() => this.handleItemClicked(0)}
ItemRenderer={ItemRenderer}
disabled={disabled}
/>
}

To accomplish this goal, we can make some changes to the allAreSelected(), selectAll, and selectNone methods in SelectPanel to make use of this.filteredOptions() instead of props.options.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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