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] - Even if Skeleton's isLoaded=true pointer-events-none stays #3125

Closed
emre88tosun opened this issue May 29, 2024 · 1 comment · Fixed by #3126
Closed

[BUG] - Even if Skeleton's isLoaded=true pointer-events-none stays #3125

emre88tosun opened this issue May 29, 2024 · 1 comment · Fixed by #3126
Assignees
Labels
Milestone

Comments

@emre88tosun
Copy link

emre88tosun commented May 29, 2024

NextUI Version

2.4.0

Describe the bug

Whether it's loaded or not, the children are not being clicked inside a Skeleton component because of pointer-events-none class

Your Example Website or App

https://stackblitz.com/edit/stackblitz-starters-afsgee?file=app%2Fpage.tsx

Steps to Reproduce the Bug or Issue

  1. Go to StackBlitz url. It'll start with loading state
  2. Click on off button and try to click on the text inside of the skeleton.
  3. Check the element in the dom tree, you will locate the pointer-events-none class in the skeleton's

Expected behavior

Skeleton should have a class data-[loaded=true]:pointer-events-auto or smt else to enable users to interact with the inner child when loading is done

Screenshots or Videos

No response

Operating System Version

macOs

Browser

Chrome

Copy link

linear bot commented May 29, 2024

@wingkwong wingkwong self-assigned this May 29, 2024
@emre88tosun emre88tosun changed the title [BUG] - Even if Skeleton's isLoaded=true points-event-none stays [BUG] - Even if Skeleton's isLoaded=true pointer-event-none stays May 29, 2024
@emre88tosun emre88tosun changed the title [BUG] - Even if Skeleton's isLoaded=true pointer-event-none stays [BUG] - Even if Skeleton's isLoaded=true pointer-events-none stays May 29, 2024
@wingkwong wingkwong added the 🐛 Type: Bug Something isn't working label May 29, 2024
@wingkwong wingkwong added this to the v2.4.1 milestone May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants