feat(journey-editor): JourneyEditor frontend — issue #753 #792
@@ -155,6 +155,10 @@ async function handleMoveUp(index: number) {
|
||||
newPosition: index
|
||||
});
|
||||
await handleReorder(ids);
|
||||
// Clear so the live region does not re-announce on unrelated DOM mutations
|
||||
setTimeout(() => {
|
||||
liveAnnounce = '';
|
||||
}, 500);
|
||||
}
|
||||
|
||||
async function handleMoveDown(index: number) {
|
||||
@@ -167,6 +171,10 @@ async function handleMoveDown(index: number) {
|
||||
newPosition: index + 2
|
||||
});
|
||||
await handleReorder(ids);
|
||||
// Clear so the live region does not re-announce on unrelated DOM mutations
|
||||
setTimeout(() => {
|
||||
liveAnnounce = '';
|
||||
}, 500);
|
||||
}
|
||||
|
||||
async function save(nextStatus: 'DRAFT' | 'PUBLISHED') {
|
||||
@@ -237,6 +245,7 @@ async function save(nextStatus: 'DRAFT' | 'PUBLISHED') {
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
<!-- pointer events managed by createBlockDragDrop; keyboard reorder available via move-up/down buttons on each item -->
|
||||
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
||||
<div
|
||||
bind:this={listEl}
|
||||
@@ -248,6 +257,7 @@ async function save(nextStatus: 'DRAFT' | 'PUBLISHED') {
|
||||
<p class="font-sans text-sm text-ink-3">{m.journey_empty_state()}</p>
|
||||
{/if}
|
||||
{#each items as item, i (item.id)}
|
||||
<!-- pointerdown initiates drag; the drag handle button inside is the semantic interactive element -->
|
||||
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
||||
<div
|
||||
data-block-wrapper
|
||||
|
||||
Reference in New Issue
Block a user