detfaellesdesignsystem / dkfds-components

Styling og komponenter
Other
43 stars 13 forks source link

Multiselect dropdown does not work correctly with remote datasources #6

Closed atoftegaard closed 5 years ago

atoftegaard commented 5 years ago

When attaching a remote datascource, several errors happen:

It seems that SelectWoo and/or the Styleguide does not really support basic Select2-features (other than the most basic with only default settings of course).

image

image

KJNC commented 5 years ago

Hi atoftegaard,

Thank you for contacting us regarding this.

I have tested the theme with the configuration you showed me. It seems your issues are with the configuration of the SelectWoo instance in your javascript.

Please have a look at the select2 documentation to see the correct configuration for an ajax solution with pagination. Remember to use a datasource with more than 2 results when using pagination. Also, for the search to work when using pagination, remember to provide the search term with the ajax call.

Hope this helps.

Best regards, Kristina Jensen Det Fælles Designsystem