Weird tailwind class name injection in V2 #3208
Unanswered
Prateekrajput1999
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, i am using headlessui/react in my project along with tailwind css
I was using a if else logical method to inject css in my DialogPanel but it was showing a weird issue
using above method of getClass function i saw sm:max-w-5xl, sm:max-w-lg and sm:max-w-xl all three in className even
though only one of them should go....i verified the logic as well it was working absolutely fine so i conclude there was some issue with class injection in DialogPanel
To Find an alternative solution to this i used inline style injection in DialogPanel component like below and it worked
can any one rectify this issue ?
I am using 2.0.3 version of @headlessui/react
I am using chrome browse
Beta Was this translation helpful? Give feedback.
All reactions