Allow for the document create options to be opened on space/enter clicked (#2501)

allow for the document create options to be opened on space/enter clicked

Co-authored-by: Nathaniel Nunes <n.nunes@clerkswell.com>
(cherry picked from commit 69d9cfab9a)
This commit is contained in:
Nathaniel Nunes
2024-11-04 19:06:14 +05:30
committed by leekelleher
parent 53592b019b
commit 9a80b2cf8c

View File

@@ -176,7 +176,8 @@ export class UmbDocumentCreateOptionsModalElement extends UmbModalBaseElement<
.alias=${this.localize.string(documentType.description ?? '')}
select-only
selectable
@selected=${() => this.#onSelectDocumentType(documentType.unique)}>
@selected=${() => this.#onSelectDocumentType(documentType.unique)}
@open=${() => this.#onSelectDocumentType(documentType.unique)}>
<umb-icon slot="icon" name=${documentType.icon || 'icon-circle-dotted'}></umb-icon>
</uui-ref-node-document-type>
`,