Skip to content

Commit

Permalink
Merge pull request #910 from thundersdata-frontend/rn-issue
Browse files Browse the repository at this point in the history
fix: 修复picker在取消后无法自动选择第一个选项的bug
  • Loading branch information
chj-damon authored Oct 14, 2024
2 parents e1c222c + e82f395 commit f99ca94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cold-kids-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@td-design/react-native-picker': patch
---

fix: 修复picker在取消后无法自动选择第一个选项的bug
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function useNormalPicker<T>({
};

const handleOk = () => {
onChange?.(selectedValue);
onChange?.(selectedValue || initialValue);
onClose?.();
};

Expand Down

0 comments on commit f99ca94

Please sign in to comment.