Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release 1.10.4 #3300

Merged
merged 2 commits into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ toc: false
spline: explain
---

## 🌈 1.10.3 `2024-12-25`
## 🌈 1.10.4 `2024-12-25`
### 🚀 Features
- `Tree`: 支持 `onScroll` API,用于处理滚动事件回调 @HaixingOoO ([#3295](https://github.com/Tencent/tdesign-react/pull/3295))
- `Tooltip`: tooltip-lite 的`mouse` 模式下优化为完全跟随鼠标位置,更符合 API 描述 @moecasts ([#3267](https://github.com/Tencent/tdesign-react/pull/3267))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-react",
"purename": "tdesign",
"version": "1.10.3",
"version": "1.10.4",
"description": "TDesign Component for React",
"title": "tdesign-react",
"main": "lib/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/select/util/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,14 @@ export const getSelectedOptions = (
.map((v) => v[keys?.value || 'value']);
currentOption = isObjectType
? (value as Array<SelectValue>).find((v) => v[keys?.value || 'value'] === selectedValue)
: currentSelectedOptions.find((option) => option[keys?.value || 'value'] === selectedValue);
: currentSelectedOptions?.find((option) => option[keys?.value || 'value'] === selectedValue);
} else {
currentSelectedOptions = isObjectType
? [value]
: tmpPropOptions?.filter?.((v) => value === v[keys?.value || 'value']) || [];
currentOption = isObjectType
? value
: currentSelectedOptions.find((option) => option[keys?.value || 'value'] === selectedValue);
: currentSelectedOptions?.find((option) => option[keys?.value || 'value'] === selectedValue);
}

return { currentSelectedOptions, currentOption };
Expand Down
Loading