我已经根据设置了enableTextSelectionOnCellsSlickGrid 和文本选择 https://stackoverflow.com/questions/9966390/slickgrid-and-text-selection?rq=1.
我对此并不是很高兴。
单元格文本被选择时行为不良。有时,一旦选择完成,选择就会消失。只有在极少数情况下它才会起作用。
有人遇到过这个问题吗?
我已经在 Firefox 和 Chrome 上尝试过了。
重现:
git clone [email protected] /cdn-cgi/l/email-protection:mleibman/SlickGrid.git
- go to
examples
folder
- 编辑
example1-simple.html
- Add
enableTextSelectionOnCells: true
在选项中
- Open
example1-simple.html
在 FF/Chrome 中
- 尝试选择一个单元格值
仅供参考,我正在 Ubuntu 上运行,如果它有什么区别的话。
这个问题已经解决了Github https://github.com/ptraca/SlickGrid/commit/f85f023ec945e968d27f11151164d9e9881631a4。你只需要修改 slick.gird.js 即可。在第 2270 行左右,您只需添加“ options.editable && ”。希望这有帮助。
if (!currentEditor) {
// if this click resulted in some cell child node getting focus,
// don't steal it back - keyboard events will still bubble up
// IE9+ seems to default DIVs to tabIndex=0 instead of -1, so check for cell clicks directly.
if (options.editable && e.target != document.activeElement || $(e.target).hasClass("slick-cell")) {
setFocus();
}
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)