# \[BUG\] Perspective Table selection not updated if selected item is removed

**URL:** <https://forum.inductiveautomation.com/t/bug-perspective-table-selection-not-updated-if-selected-item-is-removed/58969>\
**Category:** Ignition\
**Created:** [April 28, 2022, 6:53am UTC](https://forum.inductiveautomation.com/t/bug-perspective-table-selection-not-updated-if-selected-item-is-removed/58969 "2022-04-28T06:53:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 28, 2022, 6:53am UTC](https://forum.inductiveautomation.com/t/bug-perspective-table-selection-not-updated-if-selected-item-is-removed/58969/1 "2022-04-28T06:53:01Z")

</div>

v8.1.5

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 `props.data` to:

```auto
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 🤮

---

<div class="post-metadata">

**Author:** ![jball](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jball/32/11128_2.png) [@jball](https://forum.inductiveautomation.com/u/jball)\
**Post date:** [May 5, 2022, 5:07pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-table-selection-not-updated-if-selected-item-is-removed/58969/2 "2022-05-05T17:07:25Z")

</div>

If you update to at least 8.1.13, we fixed a couple of table selection behaviors that should catch this use case. One in that release and another in 8.1.8.

---

<div class="post-metadata">

**Author:** ![iscrac](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/iscrac/32/49757_2.png) [@iscrac](https://forum.inductiveautomation.com/u/iscrac)\
**Post date:** [April 25, 2023, 11:47am UTC](https://forum.inductiveautomation.com/t/bug-perspective-table-selection-not-updated-if-selected-item-is-removed/58969/3 "2023-04-25T11:47:55Z")

</div>

Hi,

I use Ignition v.8.1.25 and it's not fixed yet...
