fix(app): a focus request is consumed once, not replayed on tab return
This commit is contained in:
1 parent
4f223e04cd
commit
3d589e1556
14 files changed
+99
-30
No files matched your search
@@ -9,6 +9,8 @@ import { useEditCommand } from '@/editor/useEditCommand'
|
||||
import { useT } from '@/i18n/useT'
|
||||
import { REFERENCE_TYPES } from './referenceTypes'
|
||||
|
||||
const CARD = 'space-y-3 rounded-lg border border-[var(--color-border)] p-3'
|
||||
|
||||
/** One reference: fields commit one by one, ↑ / ↓ reorder, delete asks the core. */
|
||||
export default function ReferenceRow({
|
||||
reference,
|
||||
@@ -38,10 +40,7 @@ export default function ReferenceRow({
|
||||
}))
|
||||
const prefix = `reference-${reference.id}`
|
||||
return (
|
||||
<li
|
||||
{...focusAttrs(key)}
|
||||
className={`space-y-3 rounded-lg border border-[var(--color-border)] p-3 ${FOCUS_CLASS}`}
|
||||
>
|
||||
<li {...focusAttrs(key)} className={`${CARD} ${FOCUS_CLASS}`}>
|
||||
<div className="grid gap-3 md:grid-cols-2">
|
||||
<SelectField
|
||||
id={`${prefix}-type`}
|
||||
|
||||
Reference in new issue
Block a user