You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug (REQUIRED)
When editing a form such as input bindings and adding a new entry but not filling out all data and immediately deleting the entry will cause a crash
To Reproduce (REQUIRED)
Steps to reproduce the behavior:
open game.input_binding file
add one action
when you want to insert the "name" for that action, leave it empty and without blur the textfield click on the minus icon
Observe error
Expected behavior (REQUIRED)
No crash
Defold version (REQUIRED):
Version 1.3.4
Platforms (REQUIRED):
Platforms: any
OS: Windows 11
Device: Laptop
The text was updated successfully, but these errors were encountered:
User-facing changes: deleting a row with a currently-edited table cell no longers throws an exception.
Technical notes: JavaFX strikes again... This looks like a helpful behavior they introduced in some update — committing a change of a cell that loses focus. Unfortunately, it happens to be executed in the order we didn't anticipate. The user clicks the "Remove" button -> we execute the `:remove-table-selection` handler -> we now get new items -> we set new items on a table view -> table view notices that we edit the table and commits the edit before replacing the cell -> we execute the `:commit-table-edit` handler on a new items vector, but the edit is applied as if to the old items vector. I.e. we track an index to change while editing, and it corresponds to the old vector. So, if we remove the last item that was edited, the index will be out of bounds by one. Applying the edit is `(assoc items index new-value)`, which will act as `conj` in case of off-by-one `assoc`. Just canceling the edit will prevent JavaFX from committing it which is a way out of this mess.
Fixes#6924
Describe the bug (REQUIRED)
When editing a form such as input bindings and adding a new entry but not filling out all data and immediately deleting the entry will cause a crash
To Reproduce (REQUIRED)
Steps to reproduce the behavior:
Expected behavior (REQUIRED)
No crash
Defold version (REQUIRED):
Platforms (REQUIRED):
The text was updated successfully, but these errors were encountered: