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

fix: class selection now always sets the correct class on the schedule #310

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

tomaspalma
Copy link
Member

Closes #300

Apparently the Dropdown component we are using acts in weird ways.

Even though the dropdown was closed, for some reason, during a small amount of time, the <ClassItem>s that have the onMouseEnter are activated, even though they are no longer visible.

The fix was putting an if statement inside the onMouseEnter event listener function so that the preview is only added when the dropdown is actually open.

@tomaspalma tomaspalma self-assigned this Sep 19, 2024
@tomaspalma tomaspalma requested a review from a team September 19, 2024 18:09
Copy link

netlify bot commented Sep 19, 2024

Deploy Preview for tts-fe-preview ready!

Name Link
🔨 Latest commit 5951cbd
🔍 Latest deploy log https://app.netlify.com/sites/tts-fe-preview/deploys/66fc62225a9ad60008cfead5
😎 Deploy Preview https://deploy-preview-310--tts-fe-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tomaspalma tomaspalma force-pushed the fix/class-preview-sometimes-wrong branch from 97cb10a to b6f32e1 Compare September 22, 2024 17:09
@tomaspalma tomaspalma force-pushed the fix/class-preview-sometimes-wrong branch from b6f32e1 to 5951cbd Compare October 1, 2024 20:57
@tomaspalma tomaspalma merged commit 9e10cf2 into develop Oct 1, 2024
5 checks passed
@tomaspalma tomaspalma deleted the fix/class-preview-sometimes-wrong branch October 1, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sometimes the class preview is not removed
2 participants