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

[core] fix(Collapse): closing animation in Firefox #4186

Merged

Conversation

Arbalester
Copy link
Contributor

Fixes #4114

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

Changed height for transition. Set 'heightWhenOpen' as content height for the closing process.

Reviewers should focus on:

@palantirtech
Copy link
Member

Thanks for your interest in palantir/blueprint, @Arbalester! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@adidahiya
Copy link
Contributor

Copy link
Contributor

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

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

are you able to sign the CLA @Arbalester?

this.setTimeout(() =>
this.setState({
animationState: AnimationStates.CLOSING,
height: "0px",
heightWhenOpen: clientHeight,
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm I'm not sure why this state field is not already set at this time by L222, but this change seems to fix the bug so I'll approve it and look into any potential tweaks later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll sign the cla in 1-2 days, because my company wants me to sign the corporate version. I'll send it asap

@Arbalester
Copy link
Contributor Author

Thanks for your interest in palantir/blueprint, @Arbalester! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

Hi, I've sent on your email signed corporate cla.

@adidahiya adidahiya changed the title fix collapse animation (#4114) [core] fix(Collapse): closing animation in Firefox Jun 29, 2020
@adidahiya adidahiya merged commit 8d3eab6 into palantir:develop Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collapse doesn't animate closing on Firefox
3 participants