Skip to content

Commit

Permalink
Fix: Accordion content blinking
Browse files Browse the repository at this point in the history
  • Loading branch information
truph01 committed Jun 21, 2024
1 parent 2bd7f8d commit 2c5aacb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Collapsible.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,12 @@ export default class Collapsible extends Component {
animating,
} = this.state;
const hasKnownHeight = !measuring && (measured || collapsed);
const style = hasKnownHeight && {
const style = hasKnownHeight ? {

Check failure on line 189 in Collapsible.js

View workflow job for this annotation

GitHub Actions / Static analysis

Insert `⏎·····`
overflow: 'hidden',

Check failure on line 190 in Collapsible.js

View workflow job for this annotation

GitHub Actions / Static analysis

Replace `······` with `··········`
height: height,

Check failure on line 191 in Collapsible.js

View workflow job for this annotation

GitHub Actions / Static analysis

Insert `····`
} : {

Check failure on line 192 in Collapsible.js

View workflow job for this annotation

GitHub Actions / Static analysis

Replace `····}` with `········}⏎·····`
overflow: 'hidden',

Check failure on line 193 in Collapsible.js

View workflow job for this annotation

GitHub Actions / Static analysis

Replace `······` with `··········`
height: 0,

Check failure on line 194 in Collapsible.js

View workflow job for this annotation

GitHub Actions / Static analysis

Insert `····`
};

Check failure on line 195 in Collapsible.js

View workflow job for this annotation

GitHub Actions / Static analysis

Insert `····`
const contentStyle = {};
if (measuring) {
Expand Down

0 comments on commit 2c5aacb

Please sign in to comment.