If you have rows in a Table component, select a row, then remove that row from the Table, the row disappears and the row that was below it then replaces its position in the Table with the selected row now highlighting this item. However the selected row data (
props.selection.data) still contains the info for the row that was deleted, it isn’t updated with the new row that is highlighted.
I’ve found an icky work around by adding a change script to the
previousRow = self.props.selection.selectedRow previousColumn = self.props.selection.selectedColumn self.props.selection.selectedRow = None import time time.sleep(0.1) self.props.selection.selectedRow = previousRow self.props.selection.selectedColumn = previousColumn
It wouldn’t work without the sleep