Skip to content

Commit

Permalink
fix: 修复搜索后再次展开下拉框时,无法高亮选中项
Browse files Browse the repository at this point in the history
  • Loading branch information
storm committed Sep 10, 2021
1 parent ae2e16f commit 3b12f3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/components/Cascader/src/Cascader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const RcCascader: React.FC<RcCascaderProps> = (
setActiveValue(props.value)
}

}, [loadData])
}, [props])


const [popupVisible, setPopupVisible] = useControlledState(false, { value: props.popupVisible, onChange: onPopupVisibleChange });
Expand Down Expand Up @@ -270,8 +270,8 @@ const RcCascader: React.FC<RcCascaderProps> = (

RcCascader.defaultProps = {
options: [],
onChange() {},
onPopupVisibleChange() {},
onChange() { },
onPopupVisibleChange() { },
disabled: false,
transitionName: '',
prefixCls: 'rc-cascader',
Expand Down

0 comments on commit 3b12f3e

Please sign in to comment.