Skip to content

Conversation

@snowystinger
Copy link
Member

Closes

Originally from #9369
This is a fully automated PR and should not change the behaviour of anything by default as nodeContains just uses node.contains under the hood unless the shadow dom flag is on.

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:


import {act, within} from '@testing-library/react';
import {CheckboxGroupTesterOpts, UserOpts} from './types';
import {nodeContains} from '@react-aria/utils';
Copy link
Member Author

Choose a reason for hiding this comment

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

should we also use this in the test-utils, or should I disable the rule for this package?

Copy link
Member

Choose a reason for hiding this comment

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

hm i don't think it's really necessary for test-utils. i'd be fine with disabling the rule for this package

@rspbot
Copy link

rspbot commented Jan 15, 2026

reidbarber
reidbarber previously approved these changes Jan 15, 2026
@rspbot
Copy link

rspbot commented Jan 21, 2026

@snowystinger snowystinger added this pull request to the merge queue Jan 23, 2026
Merged via the queue into main with commit 6ad41a5 Jan 23, 2026
32 checks passed
@snowystinger snowystinger deleted the fix-all-element-contains-for-shadow-dom branch January 23, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants