File tree Expand file tree Collapse file tree 3 files changed +11
-17
lines changed Expand file tree Collapse file tree 3 files changed +11
-17
lines changed Original file line number Diff line number Diff line change
1
+ ### v3.0.1 (2 October 2017)
2
+
3
+ * [ BUGFIX] Stop clearing the selection after an animation since it causes child form inputs to lose focus on each update. (#50 )
4
+
1
5
### v3.0.0 (27 August 2017)
2
6
7
+ ##### Breaking change
8
+
9
+ * [ FEATURE] The ` isLeaving ` prop is only added to children if opted in with ` notifyLeaving={true} ` since it's
10
+ a departure from ` react-transition-group ` features.
11
+
12
+ ##### Non-breaking changes
13
+
3
14
* [ ENHANCEMENT] Treat a child rendering ` null ` as if there is no child; specifically helps avoid errors with RR4.
4
15
* [ ENHANCEMENT] Maintain component callback refs by not overwriting with string refs similar to ` react-transition-group ` .
5
- * [ FEATURE] Only add the ` isLeaving ` prop to children if opted in with ` notifyLeaving={true} ` since it's
6
- a departure from ` react-transition-group ` features.
7
16
* [ ENHANCEMENT] Use ` requestAnimationFrame ` to queue the height transition rather than a timeout.
8
17
* [ ENHANCEMENT] Handle the enter and leave animation of changes due to successive child updates before the current transition ends.
9
18
* [ ENHANCEMENT] Clear the selection after transitions to avoid the child being selected after multiple clicks.
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import chain from 'chain-function'
11
11
import warning from 'warning'
12
12
13
13
import raf from 'dom-helpers/util/requestAnimationFrame'
14
- import { clearSelection } from './utils/dom-helpers'
15
14
16
15
import ReactCSSTransitionReplaceChild from './ReactCSSTransitionReplaceChild'
17
16
import { transitionTimeout } from 'react-transition-group/utils/PropTypes'
@@ -130,11 +129,6 @@ export default class ReactCSSTransitionReplace extends React.Component {
130
129
const keysToLeave = this . keysToLeave
131
130
this . keysToLeave = [ ]
132
131
keysToLeave . forEach ( this . performLeave )
133
-
134
- // When the enter completes and the component switches to relative positioning the
135
- // child often gets selected after multiple clicks (at least in Chrome). To compensate
136
- // the current selection is cleared whenever the component updates.
137
- clearSelection ( )
138
132
}
139
133
140
134
performAppear ( key ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments