daisyui / react-daisyui

daisyUI components built with React 🌼
http://react.daisyui.com/
MIT License
891 stars 99 forks source link

Broken on Button with the loading=true (occurs on daisyui version 3.0.0 and latest) #357

Closed trinhquocviet closed 1 year ago

trinhquocviet commented 1 year ago

The latest daisyUI version introduces a new way to make a loading button with a new Loading component, it breaks the UI after I upgrade to version 3.0.3.

Version 2.x (docs: https://v2.daisyui.com/components/button/#button-with-loading-spinner-and-text)

<button class="btn loading">loading</button>

Version 3.x (docs: https://daisyui.com/components/button/#button-with-loading-spinner-and-text)

<button class="btn">
  <span class="loading loading-spinner"></span>
  loading
</button>