Skip to content

Commit

Permalink
stop events
Browse files Browse the repository at this point in the history
  • Loading branch information
madsrasmussen committed Sep 27, 2023
1 parent 6ff86fe commit 0f2d403
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,25 @@ export class UmbUserGroupWorkspaceEditorElement extends UmbLitElement {
}

#onSectionsChange(event: UmbChangeEvent) {
event.stopPropagation();
const target = event.target as UmbInputSectionElement;
this.#workspaceContext?.updateProperty('sections', target.value);
}

#onDocumentStartNodeChange(event: CustomEvent) {
event.stopPropagation();
const target = event.target as UmbInputDocumentElement;
this.#workspaceContext?.updateProperty('documentStartNodeId', target.selectedIds[0]);
}

#onMediaStartNodeChange(event: CustomEvent) {
event.stopPropagation();
const target = event.target as UmbInputMediaElement;
this.#workspaceContext?.updateProperty('mediaStartNodeId', target.selectedIds[0]);
}

#onUsersChange(event: UmbChangeEvent) {
event.stopPropagation();
const target = event.target as UmbUserInputElement;
this.#workspaceContext?.updateUserKeys(target.selectedIds);
}
Expand Down

0 comments on commit 0f2d403

Please sign in to comment.