File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ module.exports = React.createClass({
175175 } else {
176176 var below = tree . getNodeByTop ( index . top + index . height ) ;
177177 if ( below && below . parent !== index . id ) {
178- if ( below . children && below . children . length ) {
178+ if ( below . children && below . children . length && ! below . node . collapsed ) {
179179 newIndex = tree . move ( index . id , below . id , 'prepend' ) ;
180180 } else {
181181 newIndex = tree . move ( index . id , below . id , 'after' ) ;
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ module.exports = React.createClass({
175175 } else {
176176 var below = tree . getNodeByTop ( index . top + index . height ) ;
177177 if ( below && below . parent !== index . id ) {
178- if ( below . children && below . children . length ) {
178+ if ( below . children && below . children . length && ! below . node . collapsed ) {
179179 newIndex = tree . move ( index . id , below . id , 'prepend' ) ;
180180 } else {
181181 newIndex = tree . move ( index . id , below . id , 'after' ) ;
You can’t perform that action at this time.
0 commit comments