Skip to content

react-transition-group: pass nodeRef so findDOMNode isn't used#1241

Closed
snowystinger wants to merge 11 commits into
mainfrom
rtg-findDOMNode-try2
Closed

react-transition-group: pass nodeRef so findDOMNode isn't used#1241
snowystinger wants to merge 11 commits into
mainfrom
rtg-findDOMNode-try2

Conversation

@snowystinger
Copy link
Copy Markdown
Member

#1108 is failing due to Adobe CLA, opening a new PR to fix that
@mischnic :
Part of #779

There are more problems with strict mode (which is why I didn't enable strict mode in tests or Storybook yet), this is just fixing the react-transition-group and findDOMNode problem.

✅ 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:

@adobe-bot
Copy link
Copy Markdown

Build successful! 🎉

@adobe-bot
Copy link
Copy Markdown

Build successful! 🎉

let tooltipRef = useRef();
let [trigger, tooltip] = React.Children.toArray(children);

// @ts-ignore
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

there is a lot of ignoring here. What are we ignoring?

@adobe-bot
Copy link
Copy Markdown

Build successful! 🎉


// this does mean that we can't have some element wrapping the Tooltip
// we'd need to do it through context if we wanted to allow for that
let tooltipWithRef = React.cloneElement(tooltip, {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah we should avoid cloneElement. Someone might do something like <MyFancyTooltip> that wraps <Tooltip> and not pass through the ref...

@adobe-bot
Copy link
Copy Markdown

Build successful! 🎉

@devongovett devongovett added the waiting Waiting on Issue Author label Mar 18, 2021
@devongovett
Copy link
Copy Markdown
Member

I think this isn't needed anymore?

@snowystinger
Copy link
Copy Markdown
Member Author

I don't remember most of the context at this point, but do we not want to upgrade react-transition-group? Still, happy to close, we can open an issue to do the upgrade at another point

@alkanna
Copy link
Copy Markdown

alkanna commented Jul 24, 2022

Hey, what's preventing us from getting this merged ?
This is a blocker for us currently, it is still an issue :(

@dannify
Copy link
Copy Markdown
Member

dannify commented Jul 25, 2022

Related: #3291

@adobe adobe deleted a comment from ktabors Nov 1, 2022
@LFDanLu
Copy link
Copy Markdown
Member

LFDanLu commented Jan 13, 2023

Handled in #3865

@LFDanLu LFDanLu closed this Jan 13, 2023
@LFDanLu LFDanLu deleted the rtg-findDOMNode-try2 branch January 13, 2023 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting Waiting on Issue Author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StrictMode errors for calendar modal of DatePicker component (react 18)

7 participants