File tree Expand file tree Collapse file tree
components/lib/treeselect Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -684,9 +684,9 @@ export const TreeSelect = React.memo(
684684
685685 const createFilterElement = ( ) => {
686686 if ( props . filter ) {
687- let filterValue = props . onFilterValueChange ? props . filterValue : filteredValue ;
687+ let newValue = props . onFilterValueChange ? props . filterValue : filterValue ;
688688
689- filterValue = ObjectUtils . isNotEmpty ( filterValue ) ? filterValue : '' ;
689+ newValue = ObjectUtils . isNotEmpty ( newValue ) ? newValue : '' ;
690690 const filterContainerProps = mergeProps (
691691 {
692692 className : cx ( 'filterContainer' )
@@ -697,7 +697,7 @@ export const TreeSelect = React.memo(
697697 {
698698 ref : filterInputRef ,
699699 type : 'text' ,
700- value : filterValue ,
700+ value : newValue ,
701701 autoComplete : 'off' ,
702702 className : cx ( 'filter' ) ,
703703 placeholder : props . filterPlaceholder ,
You can’t perform that action at this time.
0 commit comments