fix(32): CR-04 take widget actions dispatched from connectedCallback

WidgetField assigned its element after append(), so an action the element
dispatched from connectedCallback (inside append) found no target and was
dropped without a result or an error state; widgets that load on connect
never started. The element is now the action target before it is connected.
Rebuilt the embedded admin dist.
This commit is contained in:
2026-10-27 15:25:24 +01:00
parent 5471b66b8f
commit d660cd05fa
6 changed files with 47 additions and 5 deletions

View File

@@ -158,8 +158,10 @@ onMounted(async () => {
created.setAttribute('label', props.field.actionLabel || props.field.label || props.field.name)
created.setAttribute('busy-label', t('backend::lang.extension.busy'))
created.addEventListener(WIDGET_EVENT, listener)
mountPoint.value.append(created)
// The element is the action target before it is connected: an action
// its connectedCallback dispatches (inside append) is taken, not dropped.
element = created
mountPoint.value.append(created)
status.value = 'ready'
} catch {
if (!unmounted) {