From c5a1f40f87c8c4b8f7dd1581a569a930f189b0d3 Mon Sep 17 00:00:00 2001 From: jezell Date: Fri, 3 Jan 2025 02:47:39 -0800 Subject: [PATCH] Protect onExit from setting value after dispose (#219) --- lib/src/components/table.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/components/table.dart b/lib/src/components/table.dart index 0d8a016..0db90df 100644 --- a/lib/src/components/table.dart +++ b/lib/src/components/table.dart @@ -391,6 +391,7 @@ class _ShadTableState extends State { hoveredRowIndex.value = index; }, onExit: (p) { + if(!mounted) return; if (previousPointerOffset == p.position) return; hoveredRowIndex.value = null; },