Skip to content

checkInteractive was crashing #119

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

checkInteractive was crashing #119

wants to merge 2 commits into from

Conversation

jjchiw
Copy link

@jjchiw jjchiw commented May 1, 2025

checkInteractive was crashing when a modal was over the list and it was pressed a ctrl key like (command or ctrl).

I am using MUI. I don't know if it happens with other modals.

But the while in checkInteractive was going up until it get to the html tag and it was breaking the .getAttribute This was only happening in chromium browsers.

Thanks

jjchiw added 2 commits May 1, 2025 15:13
`checkInteractive` was crashing when a modal was over the list and it was pressed a _ctrl key_ like (command or ctrl).

I am using MUI. I don't know if it happens with other modals.

But the `while` in `checkInteractive`  was going up until it get to the _html tag_ and it was breaking the `.getAttribute` This was only happening in chromium browsers
Copy link

changeset-bot bot commented May 1, 2025

⚠️ No Changeset found

Latest commit: 147fa69

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@@ -123,6 +123,12 @@ export function checkIfInteractive(target: Element, rootElement: Element) {
if (!target || !rootElement) return false;

while (target !== rootElement) {
if (!target) {
return false;
Copy link
Owner

Choose a reason for hiding this comment

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

this is a redundant check, we do it right above this line

@tajo
Copy link
Owner

tajo commented May 13, 2025

lint needs to be fixed

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.

2 participants