优化CLAUDE.md;添加本地快速部署脚本;form-dialog打开后能聚焦下拉菜单

This commit is contained in:
2026-01-06 17:12:06 +08:00
parent 7f15051f18
commit 37f9faf2a4
10 changed files with 74 additions and 40 deletions

View File

@@ -267,7 +267,7 @@ export function FormDialog({
if (formRef.current) {
// 查找第一个可聚焦的输入元素
const firstInput = formRef.current.querySelector<HTMLElement>(
'input:not([type="hidden"]):not([disabled]), textarea:not([disabled]), select:not([disabled])'
'input:not([type="hidden"]):not([disabled]), textarea:not([disabled]), select:not([disabled]), button[role="combobox"]:not([disabled])'
)
if (firstInput) {
firstInput.focus()

View File

@@ -160,7 +160,7 @@ export function MultiStepFormDialog({
if (formRef.current) {
// 查找第一个可聚焦的输入元素
const firstInput = formRef.current.querySelector<HTMLElement>(
'input:not([type="hidden"]):not([disabled]), textarea:not([disabled]), select:not([disabled])'
'input:not([type="hidden"]):not([disabled]), textarea:not([disabled]), select:not([disabled]), button[role="combobox"]:not([disabled])'
)
if (firstInput) {
firstInput.focus()