themesberg / flowbite-vue

Official Vue 3 components built for Flowbite and Tailwind CSS
https://flowbite-vue.com
MIT License
773 stars 120 forks source link

simplifyTailwindClasses omits classes when used with an empty string #181

Closed danielbinsmaier closed 1 year ago

danielbinsmaier commented 1 year ago

When using e.g. Input component with the property disabled set to false, simplifyTailwindClasses will be called like this: simplifyTailwindClasses('border border-gray-300...', '...', ''). As you can see, the last string is empty. This will then lead to border CSS class being obmitted.

To reproduce, simply use the Input component without any properties (use the defaults). Then inspect the element and you will see there is no border class.

cogor commented 1 year ago

Released in version 0.0.17-next.2