feat(app): Aller à selects the element in its tab, reload after submit
This commit is contained in:
1 parent
2a54fa4c78
commit
4f223e04cd
24 files changed
+473
-66
No files matched your search
@@ -3,6 +3,7 @@ import ActionButton from '@/components/editor/fields/ActionButton'
|
||||
import MoveButtons from '@/components/editor/fields/MoveButtons'
|
||||
import SelectField from '@/components/editor/fields/SelectField'
|
||||
import TextField from '@/components/editor/fields/TextField'
|
||||
import { FOCUS_CLASS, focusAttrs } from '@/editor/focusRequest'
|
||||
import { isBlank, nullable } from '@/editor/sheetDocument'
|
||||
import { useEditCommand } from '@/editor/useEditCommand'
|
||||
import { useT } from '@/i18n/useT'
|
||||
@@ -37,7 +38,10 @@ export default function ReferenceRow({
|
||||
}))
|
||||
const prefix = `reference-${reference.id}`
|
||||
return (
|
||||
<li className="space-y-3 rounded-lg border border-[var(--color-border)] p-3">
|
||||
<li
|
||||
{...focusAttrs(key)}
|
||||
className={`space-y-3 rounded-lg border border-[var(--color-border)] p-3 ${FOCUS_CLASS}`}
|
||||
>
|
||||
<div className="grid gap-3 md:grid-cols-2">
|
||||
<SelectField
|
||||
id={`${prefix}-type`}
|
||||
|
||||
Reference in new issue
Block a user