File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -545,7 +545,9 @@ export class NzTreeSelectComponent extends NzTreeBase implements ControlValueAcc
545
545
e . preventDefault ( ) ;
546
546
if ( this . selectedNodes . length ) {
547
547
const removeNode = this . selectedNodes [ this . selectedNodes . length - 1 ] ;
548
- this . removeSelected ( removeNode ) ;
548
+ if ( removeNode && ! removeNode . isDisabled ) {
549
+ this . removeSelected ( removeNode ) ;
550
+ }
549
551
}
550
552
}
551
553
}
@@ -556,8 +558,10 @@ export class NzTreeSelectComponent extends NzTreeBase implements ControlValueAcc
556
558
}
557
559
558
560
setInputValue ( value : string ) : void {
559
- this . inputValue = value ;
560
- this . updatePosition ( ) ;
561
+ if ( ! this . isComposing ) {
562
+ this . inputValue = value ;
563
+ this . updatePosition ( ) ;
564
+ }
561
565
}
562
566
563
567
removeSelected ( node : NzTreeNode , emit : boolean = true ) : void {
You can’t perform that action at this time.
0 commit comments