Skip to content

Commit

Permalink
fix(expandable section): Fix uncaught exception (#10717)
Browse files Browse the repository at this point in the history
* fix(expandable section):  Fix uncaught exception

* update yarn
  • Loading branch information
tlabaj authored Jul 9, 2024
1 parent 5925ef1 commit f200eb4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 11,336 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class ExpandableSection extends React.Component<ExpandableSectionProps, Expandab
};

resize = () => {
if (this.expandableContentRef) {
if (this.expandableContentRef.current) {
const { offsetWidth } = this.expandableContentRef.current;
if (this.state.previousWidth !== offsetWidth) {
this.setState({ previousWidth: offsetWidth });
Expand Down
Loading

0 comments on commit f200eb4

Please sign in to comment.