Fixed bug with preselected values in MenuFilter
Fixed bug when you supply selectedValues to a MenuFilter via a datasource. The fromSource function was probably copied over from TextFilter, but MenuFilter uses the plural definition since it allows to filter on multiple values.
This commit is contained in:
Родитель
0c8961c0b7
Коммит
01f571717b
|
@ -55,7 +55,7 @@ export default class MenuFilter extends GenericComponent<any, any> {
|
|||
|
||||
static fromSource(source: string) {
|
||||
return {
|
||||
selectedValue: GenericComponent.sourceFormat(source, 'values-selected'),
|
||||
selectedValues: GenericComponent.sourceFormat(source, 'values-selected'),
|
||||
values: GenericComponent.sourceFormat(source, 'values-all')
|
||||
};
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче