fix(sidebar): remove title attribute from NavLink to fix [object Object] tooltip
The collapsed sidebar was showing '[object Object]' on hover because the HTML title attribute received a JSX element (ProCanvas uses a JSX label with styled spans). Removed the native title attribute — the custom tooltip div already handles collapsed-state label display correctly.
This commit is contained in:
@@ -17,7 +17,6 @@ const SidebarItem = ({ to, icon: Icon, label, isCollapsed, onClick }) => {
|
|||||||
<NavLink
|
<NavLink
|
||||||
to={to}
|
to={to}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
title={isCollapsed ? label : ""}
|
|
||||||
className={({ isActive }) =>
|
className={({ isActive }) =>
|
||||||
`
|
`
|
||||||
group relative flex items-center px-3 py-3 rounded-xl mb-1
|
group relative flex items-center px-3 py-3 rounded-xl mb-1
|
||||||
|
|||||||
Reference in New Issue
Block a user