Skip to content

Commit

Permalink
Protect onExit from setting value after dispose (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
jezell authored Jan 3, 2025
1 parent 2592c81 commit c5a1f40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/components/table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ class _ShadTableState extends State<ShadTable> {
hoveredRowIndex.value = index;
},
onExit: (p) {
if(!mounted) return;
if (previousPointerOffset == p.position) return;
hoveredRowIndex.value = null;
},
Expand Down

0 comments on commit c5a1f40

Please sign in to comment.