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?

@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

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.

4 participants