🐛 fix(upload): resolve file upload button unresponsive issue (#11588)

* 🐛 fix(upload): resolve file upload button unresponsive issue

The file upload dropdown menu was not properly handling the interaction
between the dropdown and the Upload component, causing the menu to block
file selection events.

Changes:
- Add controlled open state for upload dropdown
- Mark upload menu items with closeOnClick: false to prevent premature closing
- Manually close dropdown after file selection completes
- Enhance ActionDropdown to support interactive elements with proper event handling
- Add scheduleClose functionality for delayed menu closing

Closes LOBE-3503

* 🔧 chore: update package dependencies and enhance VSCode settings

- Bump version of @lobehub/ui to ^4.22.0 in package.json.
- Update VSCode settings to exclude additional locale directories from search, improving performance and relevance.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2026-01-18 23:36:15 +08:00
committed by GitHub
parent 83bb343066
commit 76fd478752
9 changed files with 114 additions and 27 deletions

21
.vscode/settings.json vendored
View File

@@ -26,9 +26,24 @@
],
"npm.packageManager": "pnpm",
"search.exclude": {
"**/node_modules": true
// useless to search this big folder
// "locales": true
"**/node_modules": true,
// useless to search this big folder, exclude all locales except en-US and zh-CN
"locales/ar/**": true,
"locales/bg-BG/**": true,
"locales/de-DE/**": true,
"locales/es-ES/**": true,
"locales/fa-IR/**": true,
"locales/fr-FR/**": true,
"locales/it-IT/**": true,
"locales/ja-JP/**": true,
"locales/ko-KR/**": true,
"locales/nl-NL/**": true,
"locales/pl-PL/**": true,
"locales/pt-BR/**": true,
"locales/ru-RU/**": true,
"locales/tr-TR/**": true,
"locales/vi-VN/**": true,
"locales/zh-TW/**": true
},
"stylelint.validate": [
"css",