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 firefox not showing Frequency Count when clicking on freq dict tag #1644

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

Kuuuube
Copy link
Member

@Kuuuube Kuuuube commented Dec 9, 2024

Due to Firefox not allowing click events to fire for elements that are not visible, this wasn't working.

For freq tags there are two tag-label elements at different spots in the hierarchy where events are attached. One is visible, one is hidden. The parent element of these contains the tag details data. Firefox gets the one which is visible and fails to find the correct tag details to display in the notification. For whatever insane reason, Chromium does send through click events on invisible elements so it ends up getting the other tag-label element which did have the frequency count data on it. I'm also not sure why we have two tag labels to begin with and why theres one that is hidden but I'm not going to dig into that here.

This PR just makes it so the data appears in both places.

@Kuuuube Kuuuube added kind/bug The issue or PR is regarding a bug browser/firefox The issue is Firefox-only area/ui-ux The issue or PR is related to UI/UX/Design labels Dec 9, 2024
@Kuuuube Kuuuube requested a review from a team as a code owner December 9, 2024 19:55
@Kuuuube Kuuuube added this pull request to the merge queue Dec 9, 2024
Merged via the queue into yomidevs:master with commit 450f1f9 Dec 9, 2024
11 checks passed
@Kuuuube Kuuuube deleted the fix-freq branch December 9, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-ux The issue or PR is related to UI/UX/Design browser/firefox The issue is Firefox-only kind/bug The issue or PR is regarding a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants