-
Notifications
You must be signed in to change notification settings - Fork 142
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
Pressing Enter in the Annotations column to navigate through a Decision Table creates unwanted rows #603
Comments
Blocks #602 |
Good finding, I was able to reproduce it on current |
This issue seems to stem from the fact that the annotations column and its cells aren't treated like the rest of the table cells. |
Is this something that needs to be tackled earlier aka adding the "ready" label? @nikku |
@azeghers mentions an important thing that we should talk about it in our weekly tomorrow. The quirk is, that extensions can plug-in rows (and columns) and we need to find a way to handle that situation. To evaluate the urgency on this bug, I'd look back and understand when it was introduced. Is it an old one or did we just recently break this behavior? |
The bug was introduced via my context menu PR. Camunda Modeler 4.2 does not include it yet. |
This issue will sit in the backlog until the bug is reported by users. Findings :
export function getSelectableNodeById(elementId, container) {
const cells = queryAll(`[data-element-id="${ cssEscape(elementId) }"]`, container);
return cells[cells.length - 1];
}
|
Describe the Bug
In the decision table, pressing enter focuses the row below the currently selected cell, and if it's the last row, creates a new one and focuses it.
But in the "Annotations" column, pressing enter from any selected row will just add a new one at the bottom and not change focus
Steps to Reproduce
Steps to reproduce the behavior:
Expected Behavior
The cursor falls to the next cell below, and if there isn't one, a new row is added and focused.
Actual Behavior
The cursor stays in the selected cell and a new row is systematically appended at the end of the table.
Environment
The text was updated successfully, but these errors were encountered: