Given an editable TableView control, with cell selection enabled, that uses an ObservableList that is defined with an extractor, observing a given property of the model, when that property changes (for instance, via user editing the value, or programmatically), the selection shifts to the end of the row unexpectedly.
To reproduce the issue run the attached test, and:
- Click on the first cell of the first row, it gets selected (see "cell selection.png")
- Double click on the first cell of the first row to start the edit mode, and change the name "Jacob" (like "Jacob1", see "cell editing.png").
- Press enter, the value is committed as expected.
- The selection is moved to the last cell of the first row, unexpectedly (see "cell selection shifted.png").
There is no workaround, but removing the extractor fixes the issue.
It might be related to https://bugs.openjdk.org/browse/JDK-8262200
To reproduce the issue run the attached test, and:
- Click on the first cell of the first row, it gets selected (see "cell selection.png")
- Double click on the first cell of the first row to start the edit mode, and change the name "Jacob" (like "Jacob1", see "cell editing.png").
- Press enter, the value is committed as expected.
- The selection is moved to the last cell of the first row, unexpectedly (see "cell selection shifted.png").
There is no workaround, but removing the extractor fixes the issue.
It might be related to https://bugs.openjdk.org/browse/JDK-8262200
- relates to
-
JDK-8262200 Items changes in ListView always trigger a null selection
-
- Open
-