Typed subscription
validator.events.on(EVENTS.errorsChanged, (event) => {
console.log(event.detail.source, event.detail.errors);
});
Integration demo
Observe typed, bubbling lifecycle events without turning a developer log into assistive-technology noise.
Back to demo galleryUse admin to produce an async field error. Save Draft and Publish preserve different submitter values.
No command has run yet.
This visual debug log is intentionally not a live region and never receives focus.
The parent section subscribes before initialization, so it observes init and every later bubbling event. Event handlers are observations; commands still use validator methods.
validator.events.on(EVENTS.errorsChanged, (event) => {
console.log(event.detail.source, event.detail.errors);
});
root.addEventListener(EVENTS.fieldPending, (event) => {
console.log(event.target, event.currentTarget);
});