Comboboxlistitempicker reload options when filter changes #1180
Labels
status:fixed-next-drop
Issue will be fixed in upcoming release.
type:enhancement
New feature or enhancement of existing capability
Milestone
Category
[ ] Enhancement
[x ] Bug
[ ] Question
Version
Please specify what version of the library you are using: [ latest ]
_
Expected / Desired Behavior / Question
Comboboboxlistitempicker should refresh options if filter changes
Observed Behavior
Comboboboxlistitempicker should refresh options if filter changes
Steps to Reproduce
Change the filter on a comboboxlistitemfilere at runtime (useful for cascading dropdowns.
I noticed in the code:
public async componentWillReceiveProps(nextProps: IComboBoxListItemPickerProps): Promise {
if (nextProps.listId !== this.props.listId) {
this.setState({
selectedItems: [],
});
await this.loadOptions(nextProps, false);
shouldnt we also call loadOptions if the filter changes?
The text was updated successfully, but these errors were encountered: