RhoInc / Webcharts

Reusable, flexible, interactive charts with JavaScript
MIT License
34 stars 6 forks source link

Set options in multi-select filter dropdowns to selected initially. #287

Open samussiah opened 3 years ago

samussiah commented 3 years ago

Related to #254. Currently all options in multi-select filter dropdowns are not selected even though the corresponding filter values are represented in the data.

samussiah commented 3 years ago

Probably just update this line from:

        .property('selected', d => d === control.start);

to

        .property('selected', d => d === control.start || control.multiple === true);