Describe your issue
I have conditional className for DisclosurePanel. When we click the change button, it's merging the class instead of changing the class.
It's only happen when using <Transition>, if we remove the <Transition> it's working fine.
Expected output:
"bg-slate-100 text-slate-900"
Actual output:
"bg-slate-100 text-slate-900 text-rose-900"
What package within Headless UI are you using? @headlessui/react
What version of that package are you using? v2.0.4
What browser are you using? Chrome
Reproduction URL https://playcode.io/1899014
Code
Describe your issue I have conditional className for DisclosurePanel. When we click the change button, it's merging the class instead of changing the class.
It's only happen when using
<Transition>
, if we remove the<Transition>
it's working fine.Expected output: "bg-slate-100 text-slate-900"
Actual output: "bg-slate-100 text-slate-900 text-rose-900"