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
When using Tailwind with class fields on e.g. Scrollbar's dragClass option, Swiper is assuming a single classname. This should be split on spaces and passed to classList.add as an array.
Expected Behavior
We should be able to pass multiple classes to this, as per #6344 and other related issues.
Actual Behavior
See codesandbox:
Failed to execute 'add' on 'DOMTokenList': The token provided ('left-0 top-0 relative w-full h-full rounded-xl bg-font-tertiary') contains HTML space characters, which are not valid in tokens.
Check that this is really a bug
Reproduction link
https://codesandbox.io/s/swiper-dragclass-issue-nhyjzt
Bug description
When using Tailwind with class fields on e.g. Scrollbar's dragClass option, Swiper is assuming a single classname. This should be split on spaces and passed to classList.add as an array.
Expected Behavior
We should be able to pass multiple classes to this, as per #6344 and other related issues.
Actual Behavior
See codesandbox:
Swiper version
10.3.1
Platform/Target and Browser Versions
Chrome 117.0.5938.149
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: