Skip to content

Add upload lifecycle events#736

Open
MatheusRich wants to merge 1 commit intobasecamp:mainfrom
MatheusRich:upload-lifecycle-events
Open

Add upload lifecycle events#736
MatheusRich wants to merge 1 commit intobasecamp:mainfrom
MatheusRich:upload-lifecycle-events

Conversation

@MatheusRich
Copy link

@MatheusRich MatheusRich commented Feb 17, 2026

Dispatches lexxy:upload-start, lexxy:upload-progress, and lexxy:upload-end events on the editor element during file uploads. This lets consumers react to the upload lifecycle — for example, disabling submit buttons or showing custom progress UI.

Events bubble up from the element with relevant detail (file, progress, error).

Closes #735

Dispatch lexxy:upload-start, lexxy:upload-progress, and lexxy:upload-end
events on the editor element during file uploads, letting consumers react
to the upload lifecycle (e.g., disabling submit buttons, showing progress).

Closes basecamp#735

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MatheusRich MatheusRich force-pushed the upload-lifecycle-events branch from 79801ff to eeead96 Compare February 17, 2026 14:30
}

get #editorElement() {
return this.editor.getRootElement().parentElement
Copy link
Author

Choose a reason for hiding this comment

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

I don't love this. We could instead invert the dependency here and pass editorElement instead of editor?

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.

Add events for attachment upload start/end

1 participant

Comments