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" issue with dynamically applied classes not being properly removed for reentering items #499

Merged
merged 5 commits into from May 9, 2019

Conversation

Andarist
Copy link
Contributor

@Andarist Andarist commented May 9, 2019

Issue - https://codesandbox.io/s/zzxzjjwwmp

Notice how the reentered item (foo) has "exit" classes applied incorrectly.

Copy link
Member

@taion taion left a comment

Choose a reason for hiding this comment

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

cool – this is a good improvement. i made some minor comments for improving code readability a bit, but this is nice

src/CSSTransition.js Outdated Show resolved Hide resolved
src/CSSTransition.js Outdated Show resolved Hide resolved
src/CSSTransition.js Outdated Show resolved Hide resolved
src/CSSTransition.js Outdated Show resolved Hide resolved
src/CSSTransition.js Outdated Show resolved Hide resolved
@Andarist
Copy link
Contributor Author

Andarist commented May 9, 2019

@taion thanks for the review! I've applied all your suggested code changes

@Andarist
Copy link
Contributor Author

Andarist commented May 9, 2019

No pressure - just a question. Are there chances for a new release with this soon(-ish) or should we use a fork temporarily?

@jquense jquense changed the title Fix issue with dynamically applied classes not being properly removed for reentering items fix" issue with dynamically applied classes not being properly removed for reentering items May 9, 2019
@jquense jquense merged commit 562e09d into reactjs:master May 9, 2019
@jquense
Copy link
Collaborator

jquense commented May 9, 2019

aaarrrrg i messed up the commit name. it'll get published once i fix it

jquense pushed a commit that referenced this pull request May 9, 2019
…d for reentering items (#499)

* Add failing test for not removing dynamically applied classes

* Fixed issue with not removing dynamically applied classes

* Clear cached applied classes when removing them

* Few stylistic changes suggested at code review

* Fix linting errors
jquense pushed a commit that referenced this pull request May 9, 2019
## [4.0.1](v4.0.0...v4.0.1) (2019-05-09)

### Bug Fixes

* issue with dynamically applied classes not being properly removed for reentering items ([#499](#499)) ([129cb11](129cb11))
@Andarist Andarist deleted the fix/dynamic-classes branch May 10, 2019 10:03
@Andarist
Copy link
Contributor Author

Thanks for the quick release ❤️

johnfrench3 pushed a commit to johnfrench3/transition-group-react that referenced this pull request Nov 2, 2022
## [4.0.1](reactjs/react-transition-group@v4.0.0...v4.0.1) (2019-05-09)

### Bug Fixes

* issue with dynamically applied classes not being properly removed for reentering items ([#499](reactjs/react-transition-group#499)) ([129cb11](reactjs/react-transition-group@129cb11))
patrickm68 added a commit to patrickm68/react-transition-group-developer that referenced this pull request Dec 1, 2022
## [4.0.1](reactjs/react-transition-group@v4.0.0...v4.0.1) (2019-05-09)

### Bug Fixes

* issue with dynamically applied classes not being properly removed for reentering items ([#499](reactjs/react-transition-group#499)) ([129cb11](reactjs/react-transition-group@129cb11))
shaikdev2 pushed a commit to shaikdev2/transition-group-react that referenced this pull request Jun 9, 2023
## [4.0.1](reactjs/react-transition-group@v4.0.0...v4.0.1) (2019-05-09)

### Bug Fixes

* issue with dynamically applied classes not being properly removed for reentering items ([#499](reactjs/react-transition-group#499)) ([129cb11](reactjs/react-transition-group@129cb11))
GreenCat1996 added a commit to GreenCat1996/react-transition-group that referenced this pull request Aug 1, 2023
## [4.0.1](reactjs/react-transition-group@v4.0.0...v4.0.1) (2019-05-09)

### Bug Fixes

* issue with dynamically applied classes not being properly removed for reentering items ([#499](reactjs/react-transition-group#499)) ([129cb11](reactjs/react-transition-group@129cb11))
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.

None yet

3 participants