-
Notifications
You must be signed in to change notification settings - Fork 424
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
Editors Fail With Slick.RowSelectionModel({selectActiveRow: true}) #68
Comments
Apparently has something to do with line 90 grid.registerPlugin(checkboxSelector); If this is commented out the check boxes appear and are functional except for "select all rows" checkbox in grid header. |
I have the same problem ... ... |
will try to look at this soon |
This is a really complicated bug, unfortunately, to do with active cell selection. I can't even work out a quick patch yet, but if I do I'll post it. |
I have a similar problem but not sure if it's the same issue. If I use Is there any known workaround for something similar? EDIT // this optimisation causes trouble - MLeibman #329
//if (activeCellChanged) {
if (!suppressActiveCellChangedEvent) { trigger(self.onActiveCellChanged, getActiveCell()); }
//} EDIT 2 So here's the 1 line of code that I changed (I added // this optimisation causes trouble - MLeibman #329
//if ((activeCell != cell.cell || activeRow != cell.row) && canCellBeActive(cell.row, cell.cell)) {
if (canCellBeActive(cell.row, cell.cell)) {
if (!getEditorLock().isActive() || getEditorLock().commitCurrentEdit()) {
scrollRowIntoView(cell.row, false);
var preClickModeOn = (e.target && e.target.className === Slick.preClickClassName);
- setActiveCellInternal(getCellNode(cell.row, cell.cell), null, preClickModeOn);
+ setActiveCellInternal(getCellNode(cell.row, cell.cell), null, preClickModeOn, true);
}
} Adding the last flag to @6pac |
Found the problem and made a PR in regards to the current issue. Made a fix to master by mistake, please disregard and look instead at the PR #241 |
fix issue #68 editor with activeRow selection
I believe the original issue was covered in the PR that is now merged and so we should be safe to close the issue. If there's any problem, feel free to write something here or open a new issue. Thanks |
This reverts commit 2dbffbe.
Modify examples/example-checkbox-row-select.html line 89 to grid.setSelectionModel(new Slick.RowSelectionModel({selectActiveRow: true})); causes editing of cells to fail. Works in original SlickGrid.
The text was updated successfully, but these errors were encountered: