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
|
||||
to={to}
|
||||
onClick={onClick}
|
||||
title={isCollapsed ? label : ""}
|
||||
className={({ isActive }) =>
|
||||
`
|
||||
group relative flex items-center px-3 py-3 rounded-xl mb-1
|
||||
|
||||
Reference in New Issue
Block a user