fix (app): mobile sidebar web interactions (#900)

* fix mobile sidebar web interactions

* fix(app): restore button role on sidebar project row

---------

Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
This commit is contained in:
nikuscs
2026-05-15 13:38:43 +00:00
committed by GitHub
co-authored by Mohamed Boudra
parent e309d82b41
commit 35c582913d
4 changed files with 65 additions and 11 deletions
@@ -89,6 +89,12 @@ function SortableItem<T>({
}),
[combinedTransform, transition, isDragging],
);
const {
role: _dragRole,
tabIndex: _dragTabIndex,
"aria-roledescription": _dragRoleDescription,
...dragHandleAttributes
} = attributes as unknown as Record<string, unknown>;
const info: DraggableRenderItemInfo<T> = {
item,
@@ -97,7 +103,7 @@ function SortableItem<T>({
isActive: activeId === id,
dragHandleProps: useDragHandle
? {
attributes: attributes as unknown as Record<string, unknown>,
attributes: dragHandleAttributes,
listeners: listeners as unknown as Record<string, unknown>,
setActivatorNodeRef: setActivatorNodeRef as unknown as (node: unknown) => void,
}