Skip to content

Commit

Permalink
Fix TreeSelect bug (#7565)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 5, 2025
1 parent 16eafe5 commit 1a50364
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/lib/treeselect/TreeSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ export const TreeSelect = React.memo(

const createFilterElement = () => {
if (props.filter) {
let filterValue = props.onFilterValueChange ? props.filterValue : filterValue;
let filterValue = props.onFilterValueChange ? props.filterValue : filteredValue;

filterValue = ObjectUtils.isNotEmpty(filterValue) ? filterValue : '';
const filterContainerProps = mergeProps(
Expand Down
2 changes: 1 addition & 1 deletion components/lib/utils/DomHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ export default class DomHandler {
};

for (let parent of parents) {
let scrollSelectors = parent.nodeType === 1 && parent.dataset.scrollselectors;
let scrollSelectors = parent.nodeType === 1 && parent.dataset?.scrollselectors;

if (scrollSelectors) {
let selectors = scrollSelectors.split(',');
Expand Down

0 comments on commit 1a50364

Please sign in to comment.