Skip to content

refactor: create a common hook for handling editable slate components#3417

Draft
Jonas-C wants to merge 23 commits into
masterfrom
refactor/unify-slate-edit-state-handling
Draft

refactor: create a common hook for handling editable slate components#3417
Jonas-C wants to merge 23 commits into
masterfrom
refactor/unify-slate-edit-state-handling

Conversation

@Jonas-C
Copy link
Copy Markdown
Contributor

@Jonas-C Jonas-C commented May 7, 2026

Vi fortsetter å ha en hel haug med fokus-feil i slate-komponentene våre. Mistenker at vi kan ha færre hvis vi reduserer mengden ulikheter mellom de ulike embedene våre.

@Jonas-C Jonas-C force-pushed the refactor/unify-slate-edit-state-handling branch from 05e00f1 to 7ce5caf Compare May 11, 2026 08:07
@Jonas-C Jonas-C force-pushed the refactor/unify-slate-edit-state-handling branch from b4fc037 to d83e455 Compare May 13, 2026 08:25
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dobbeltklikk på matte funker ikkje her.

</DialogHeader>
<DialogBody>
<LinkForm linkData={linkData} onSave={handleSave} onRemove={handleRemove} />
<LinkForm linkData={linkData} onSave={onSave} onRemove={handleRemove} />
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Her burde vi heller hatt handeUnwrap

Suggested change
<LinkForm linkData={linkData} onSave={onSave} onRemove={handleRemove} />
<LinkForm linkData={linkData} onSave={onSave} onRemove={handleUnwrap} />

addConcept={(data) => handleSave({ data: getConceptDataAttributes(data, locale) })}
locale={locale}
concept={concept}
handleRemove={handleRemove}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
handleRemove={handleRemove}
handleRemove={handleUnwrap}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants