mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 00:11:05 +00:00
promptbox: role and tabIndex after dnd-kit's attributes (the same values), keydown before its listeners
This commit is contained in:
1 parent
a40ad2c20b
commit
6bb207e4b5
1 file changed
+2
-2
@@ -269,12 +269,12 @@ export const ImagePromptRow = ({
|
||||
|
||||
return (
|
||||
<div
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
onKeyDown={clickOnEnterOrSpace}
|
||||
ref={setNodeRef}
|
||||
style={style}
|
||||
{...(allowReorder ? { ...attributes, ...listeners } : {})}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
className={twMerge(
|
||||
"glass relative aspect-square overflow-hidden rounded-[3px] w-14 border-2 border-white/30 transition-opacity group",
|
||||
allowReorder
|
||||
|
||||
Reference in new issue
Block a user