Tailwind CSS completion bug?

Autocompletion works fine for me, until:

I use a function to create my class strings (here "cn()" ).

In this case I have autosuggest only at the first position of my string (here when I start to type in front of "w-max"). When I start to type somewehere else in the string I dont get autosuggest.

 

<ChevronDown
className={cn(
"w-max w-44 flex-1 bg-shade fl bg-shade bg- flex hover:bg-shade rounded-full",
isExpanded && "transform rotate-90"
)}
/>

Please sign in to leave a comment.