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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user