Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Button isLoading crash when website under google translation #4476

Open
meterler opened this issue Jan 2, 2025 · 4 comments
Open

Comments

@meterler
Copy link

meterler commented Jan 2, 2025

NextUI Version

2.4.6

Describe the bug

My website is in English, and a user from Brazil use the site and auto translate the page into the other language.
When click Button and set isLoading, the website crashed.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. In Chrome set Google translation auto open
  2. Click a Button and set isLoading to true
  3. the website crashed

Expected behavior

not crashed

Screenshots or Videos

No response

Operating System Version

MacOS/Windows

Browser

Chrome

Copy link

linear bot commented Jan 2, 2025

@wingkwong
Copy link
Member

  1. have you tried the latest version? there is quite a lot of diffs between 2.6.10 and 2.4.6.
  2. any error message you can provide? or can you provide a video for demostration?
  3. is it reproducible just a normal Button with isLoading={true}?

@meterler
Copy link
Author

meterler commented Jan 6, 2025

I tried new version as 2.6.10, and this problem still exist.

You can see this video when I did not use Google Translation, this isLoading effect works;
https://github.com/user-attachments/assets/46373b43-932b-4aa8-accb-d8f99e702041

After I used the Google Translation to Português or other language, and isLoading caused crash
https://github.com/user-attachments/assets/699c6f8e-e520-4a4d-9e52-ee797371db8b

@meterler
Copy link
Author

meterler commented Jan 6, 2025

index.tsx.zip
And code here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants