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

feat(react19): Remove findDomNode in textCopyInput #82637

Merged
merged 4 commits into from
Jan 2, 2025

Conversation

scttcper
Copy link
Member

@scttcper scttcper requested a review from a team December 27, 2024 23:23
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 27, 2024
// it's a ref to AutoSelectText
const node = findDOMNode(textRef.current); // eslint-disable-line react/no-find-dom-node
if (!node || !(node instanceof HTMLElement)) {
const node = document.getElementById(textNodeId);
Copy link
Member

Choose a reason for hiding this comment

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

getElementById might meant that the else case below isn't needed anymore... it should always be an HTMLInputElement .... unless the <StyledInput> implementation changes...

@scttcper scttcper merged commit 7b05d0f into master Jan 2, 2025
42 checks passed
@scttcper scttcper deleted the scttcper/copy-text-input-dom branch January 2, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants