Skip to content

Commit

Permalink
Merge pull request #124 from gumgum/PGA-254-fixing-expandable-row-bug
Browse files Browse the repository at this point in the history
PGA-254 - Updating logic so when table is expanded, height is set to …
  • Loading branch information
shannonhochkins authored Apr 9, 2024
2 parents f831334 + 3721fad commit 50bd0b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/molecules/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ class Table extends Component {
easing: 'ease-in-out'
}).onfinish = () => {
// always set the height after finish to the last value on the animatable properties
ref.style.height = toFrom[1].height;
// when expanded, we should set the height to auto to automatically account
// for dynamic changes to the content when resizing or changing the content based on state
ref.style.height = shouldExpand ? 'auto' : toFrom[1].height;
};
};

Expand Down

0 comments on commit 50bd0b0

Please sign in to comment.