Skip to content

Commit

Permalink
chore: release 1.10.4 (#3300)
Browse files Browse the repository at this point in the history
* chore: release 1.10.4

* chore: update changelog
  • Loading branch information
uyarn authored Dec 25, 2024
1 parent 469e666 commit 9b74c84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 9b74c84

Please sign in to comment.