fix: react-doctor exhaustive-deps 3→0, prefer-use-effect-event 3→0 (useEffectEvent for modal cancel handlers), role-supports-aria-props 3→0 (aria-pressed/aria-current on buttons)
This commit is contained in:
@@ -370,7 +370,7 @@ function CommandPaletteDialog({ onClose }: { onClose: () => void }) {
|
||||
<li key={entry.id} className="list-none">
|
||||
<button
|
||||
type="button"
|
||||
aria-selected={isSelected}
|
||||
aria-current={isSelected ? "true" : undefined}
|
||||
onClick={() => navigate(entry.href)}
|
||||
onMouseEnter={() => setSelected(i)}
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user