We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preline's Tailwind CSS Switch/Toggle breaks when updating node to v22.12. Works like charm with node v20.4 and 20.5
<script setup lang="ts"> </script> <template> <div class="flex flex-col w-full h-full justify-center items-center bg-gray-50"> <input type="checkbox" id="hs-basic-usage" class="relative w-[3.25rem] h-7 p-px bg-gray-100 border-transparent text-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:ring-blue-600 disabled:opacity-50 disabled:pointer-events-none checked:bg-none checked:text-blue-600 checked:border-blue-600 focus:checked:border-blue-600 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-600 before:inline-block before:size-6 before:bg-white checked:before:bg-blue-200 before:translate-x-0 checked:before:translate-x-full before:rounded-full before:shadow before:transform before:ring-0 before:transition before:ease-in-out before:duration-200 dark:before:bg-neutral-400 dark:checked:before:bg-blue-200"> <label for="hs-basic-usage" class="sr-only">switch</label> </div> </template>
I have downgraded back to v20.5 (originally started form 20.4), cannot exclude that other components are affected as well.
Complete setup
"dependencies": { ... "@popperjs/core": "^2.11.8", "@preline/accordion": "^2.6.0", "@preline/collapse": "^2.6.0", "@preline/copy-markup": "^2.6.0", "@preline/dropdown": "^2.6.0", "@preline/overlay": "^2.6.0", "@preline/select": "^2.6.0", "@preline/stepper": "^2.6.0", "@preline/tabs": "^2.6.0", "@preline/textarea-auto-height": "^2.6.0", "@preline/theme-switch": "^2.6.0", "@preline/toggle-count": "^2.6.0", "@preline/tooltip": "^2.5.0", ... "@tailwindcss/forms": "^0.5.9", // I updated this to 0.5.9 which did not help "@tailwindcss/typography": "^0.5.12", "@tiptap/core": "^2.5.4", .... "@vitejs/plugin-vue": "^5.2.1", ... "tailwindcss": "^3.4.3", "vue": "^3.5.12", ... }, "devDependencies": { .... "typescript": "~4.5.5", "vite": "^5.4.10", .... }
N/A
As in 2.
As in 3.
See above.
The text was updated successfully, but these errors were encountered:
Did you try using the tailwind plugin toggle? I tested it with Node 22 and 23 and it is fully working.
Sorry, something went wrong.
Which one do you mean? I copied the preline toggle from the docu and just switched between node 20 and 22.
No branches or pull requests
Summary
Preline's Tailwind CSS Switch/Toggle breaks when updating node to v22.12. Works like charm with node v20.4 and 20.5
Steps to Reproduce
I have downgraded back to v20.5 (originally started form 20.4), cannot exclude that other components are affected as well.
Complete setup
Demo Link
N/A
Expected Behavior
As in 2.
Actual Behavior
As in 3.
Screenshots
See above.
The text was updated successfully, but these errors were encountered: