File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ class Select extends Component {
138
138
this . renderedTreeData = this . renderTreeData ( nextProps ) ;
139
139
// Detecting whether the object of `onChange`'s argument is old ref.
140
140
// Better to do a deep equal later.
141
- this . _cacheTreeNodesStates = this . _cacheTreeNodesStates !== 'no' &&
141
+ this . _cacheTreeNodesStates = ! this . _cacheTreeNodesStates &&
142
142
this . _savedValue &&
143
143
nextProps . value === this . _savedValue ;
144
144
if ( this . props . treeData !== nextProps . treeData ||
@@ -375,7 +375,8 @@ class Select extends Component {
375
375
return ;
376
376
}
377
377
event . stopPropagation ( ) ;
378
- this . _cacheTreeNodesStates = 'no' ;
378
+ this . _cacheTreeNodesStates = false ;
379
+ this . _checkedNodes = [ ] ;
379
380
if ( state . inputValue || state . value . length ) {
380
381
this . fireChange ( [ ] ) ;
381
382
this . setOpenState ( false ) ;
@@ -640,7 +641,7 @@ class Select extends Component {
640
641
if ( props . disabled ) {
641
642
return ;
642
643
}
643
- this . _cacheTreeNodesStates = 'no' ;
644
+ this . _cacheTreeNodesStates = false ;
644
645
if ( props . treeCheckable &&
645
646
( props . showCheckedStrategy === SHOW_ALL || props . showCheckedStrategy === SHOW_PARENT )
646
647
&& ! ( props . treeCheckStrictly || this . state . inputValue ) ) {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const Trigger = require.requireActual('rc-trigger');
4
4
5
5
const render = Trigger . prototype . render ;
6
6
7
- Trigger . prototype . render = function ( ) {
7
+ Trigger . prototype . render = function _render ( ) {
8
8
const { popupVisible } = this . state ;
9
9
return (
10
10
< div id = "TriggerContainer" >
You can’t perform that action at this time.
0 commit comments