Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit b11084f

Browse files
committed
feat(filter): reset button causes filter to reset to correct state
1 parent 57433eb commit b11084f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Filter/CombinedFilterHelpers.ts

+9
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,15 @@ export function resetFilters(
202202
if (f.optionType === OptionTypeModel.inputBox) {
203203
f.filterOptions = [];
204204
}
205+
if (
206+
f.isMultiSelect === true &&
207+
f.filterOptions !== undefined &&
208+
f.filterOptions[0] !== undefined &&
209+
f.filterOptions[0].filterType !== undefined &&
210+
f.filterOptions[0].filterType !== FilterType.Subject
211+
) {
212+
f.filterOptions = [];
213+
}
205214
f.filterOptions.forEach(o => (o.isSelected = false));
206215
});
207216

0 commit comments

Comments
 (0)