themesberg / flowbite-react

Official React components built for Flowbite and Tailwind CSS
https://flowbite-react.com
MIT License
1.82k stars 406 forks source link

fix(toggleswitch component): added forwardRef to ToggleSwitch component #1198

Closed nikitadubyk closed 7 months ago

nikitadubyk commented 7 months ago

fix #1078

A forwardRef for the ToggleSwitch component has been added. These changes fixed an error with the forwardRef message appearing when using react-hook-form

This PR will be fix this issue https://github.com/themesberg/flowbite-react/issues/1078

vercel[bot] commented 7 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flowbite-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 23, 2023 8:18am
codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (7461173) 99.54% compared to head (0709a67) 97.36%. Report is 181 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1198 +/- ## ========================================== - Coverage 99.54% 97.36% -2.19% ========================================== Files 163 214 +51 Lines 6621 9075 +2454 Branches 401 530 +129 ========================================== + Hits 6591 8836 +2245 - Misses 30 239 +209 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

rluders commented 7 months ago

Thank you, @nikitadubyk