themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.31k stars 710 forks source link

The Blazor will normalize the aria-selected='true' to aria-selected, so can we fix the code add this condition check? #745

Open rwecho opened 7 months ago

rwecho commented 7 months ago

Describe the bug I developed a Blazor app with Flowbite. Despite the Tabs components working well, the Blazor will normalize the 'aria-selected' attribute without a 'true' value. The final result of this issue is that the default selected tab does not work.

To Reproduce Steps to reproduce the behavior: Create a Blazor project, referencing the Flowbite and tabs component. Then create the tab item in a loop logic.

Expected behavior The default selected tab works in the Blazor app.

Screenshots

image

Desktop (please complete the following information): All platforms supported by Blazor

Smartphone (please complete the following information): All devices supported by Blazor