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

关于 setEditRow 是否触发 focus #2794

Open
1 task done
TianYa-Q opened this issue Feb 23, 2025 · 0 comments
Open
1 task done

关于 setEditRow 是否触发 focus #2794

TianYa-Q opened this issue Feb 23, 2025 · 0 comments
Labels
bug Something isn't working fix has been fix

Comments

@TianYa-Q
Copy link

这个需求解决了什么问题:

希望实现的功能是使用 setEditRow(row, col) 后 会触发指定 col 的 focus 事件
从而实现全选(select)整个input 中的文字

建议的 API 是什么样的:

setEditRow(row,col,focus)

是否已有其他不错的替代方案:

之前在使用4.10.6-beta.31 的时候,
使用setEditRow 指定 column 会触发 input 的自动 focus
最近的版本中 isfocus 是 false,导致不会触发focus 事件
handleEditActive({
row,
rowIndex: $xeTable.getRowIndex(row),
column,
columnIndex: $xeTable.getColumnIndex(column),
cell,
$table: $xeTable
}, null, false)
使用的 mode 是 row
如果有更棒的实现方法的话,也请说说哈,感激

是否使用当前最新版本?

  • 我已确认是使用当前的最新版本。
@TianYa-Q TianYa-Q added the enhancement New feature or request label Feb 23, 2025
@xuliangzhan xuliangzhan added bug Something isn't working fix has been fix and removed enhancement New feature or request labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix has been fix
Projects
None yet
Development

No branches or pull requests

2 participants