8000 fix(sdk): Remove ExplicitSize findDOMNode console errors by oisincoveney · Pull Request #52253 · metabase/metabase · GitHub
[go: up one dir, main page]

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

fix(sdk): Remove ExplicitSize findDOMNode console errors #52253

Merged
merged 10 commits into from
Jan 30, 2025
Prev Previous commit
Next Next commit
Add option for debounced frame refs
  • Loading branch information
oisincoveney committed Jan 27, 2025
commit 3f683e55df5cc7faa0171c31f2532283190cf869
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ class DebouncedFrame extends Component {
return (
<div
ref={r => {
this.props.forwardedRef?.(r);
if (this.props.forwardedRef) {
if (typeof this.props.forwardedRef === "function") {
this.props.forwardedRef(r);
} else {
this.props.forwardedRef = r;
}
}
return (this._container = r);
}}
className={cx(className, CS.relative)}
Expand Down
Loading
0