fix: table sorting blocked by pointerEvents:none during loading
Root cause: useListData set loading=true on every refetch, and all 4 admin list pages (offers, orders, invoices, projects) applied pointerEvents:'none' while loading — blocking all clicks including sort column headers. Fix: removed setLoading(true) from refetch (matching PHP behavior) and removed pointerEvents from all list page cards. Opacity fade kept as visual feedback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -143,7 +143,7 @@ export default function Projects() {
|
||||
initial={{ opacity: 0, y: 12 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.25, delay: 0.06 }}
|
||||
style={{ opacity: loading ? 0.6 : 1, transition: 'opacity 0.2s', pointerEvents: loading ? 'none' : 'auto' }}
|
||||
style={{ opacity: loading ? 0.6 : 1, transition: 'opacity 0.2s' }}
|
||||
>
|
||||
<div className="admin-card-body">
|
||||
<div className="admin-search-bar mb-4">
|
||||
|
||||
Reference in New Issue
Block a user