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(ux): address bug with firefox event handling #758

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

alexristich
Copy link
Contributor

Fixes #730.

Best practices discourage the use of inline event handlers, but beyond this it seems to cause an issue specific to Firefox's event handling mechanism.

In the current filtering code, two were events are added, one in the setup function and the other in the inline HTML. The former is the actual desired filtering function, and the latter looks like a typo, since no onInput function actually exists (neither within the scope nor in the project).

This small change allows filtering to work properly in Firefox, and has no adverse effect in Chromium, which seems to silently discard failed calls to non-existent event handlers.

@bcoe bcoe changed the title Fix firefox filtering fix(ux): address bug with firefox event handling Feb 19, 2024
@bcoe bcoe added the ci label Feb 19, 2024
Copy link
Member

@bcoe bcoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution 👍

@bcoe bcoe merged commit 2207a87 into istanbuljs:master Feb 19, 2024
5 checks passed
@alexristich alexristich deleted the fix-firefox-filtering branch February 20, 2024 11:00
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 this pull request may close these issues.

Simple fix: Filter not working on firefox
2 participants