ensure we fallback to '' for backwards compatibility reasons
This commit is contained in:
parent
bf28bf61c1
commit
aa979d645f
1 changed files with 5 additions and 1 deletions
|
|
@ -608,7 +608,11 @@ function buildPluginApi(tailwindConfig, context, { variantList, variantMap, offs
|
|||
}
|
||||
|
||||
return variantFn(
|
||||
args?.value === sharedState.NONE ? options.values.DEFAULT : args?.value,
|
||||
args?.value === sharedState.NONE
|
||||
? options.values.DEFAULT
|
||||
: // Falling back to args if it is a string, otherwise '' for older intellisense
|
||||
// (JetBrains) plugins.
|
||||
args?.value ?? (typeof args === 'string' ? args : ''),
|
||||
modifiersEnabled ? { modifier: args?.modifier, container } : { container }
|
||||
)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue