You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No, the issue is not fixed yet. I see a PR that makes the slim select library optional #224, but this still doesn't deal with the issue, that if there is no element on the page with .multi-select class, the library's script throws the error described above.
As you can see here, we fixed this in our override by only including the library together with setting the class.
The
/templates/overrides/form/select.html.twig
template always attaches the slimselect library, see code.This causes js errors on pages where the template is used, but there is no element with
.multi-select
class:Uncaught Error: Could not find select element
We fixed this issue by overriding this template and only attaching the library when
element['#multiple']
is true.The text was updated successfully, but these errors were encountered: