From 4746e1f8fe41d4766d0bcb453c26e1395e593b27 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Mon, 10 Nov 2025 15:05:40 -0600 Subject: [PATCH] fix: prevent modal closure when clicking tabs in AllSkillsModal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix bug where clicking the "Mastered" (or any other) tab in the "View all skills" modal would unexpectedly close the modal. Root cause: Tabs.Trigger components from Radix UI were rendering as buttons without explicit type="button" attributes. Browsers can treat buttons without explicit types inconsistently, sometimes causing click events to bubble up and trigger unwanted behaviors like closing modals. Solution: Use Radix UI's asChild prop to wrap each Tabs.Trigger with an explicit ))}