Skip to content

Commit 773346c

Browse files
authored
Merge pull request #2104 from umbraco/v14/bugfix/collection-view-menu-close
Bugfix: Collection View menu close on selection
2 parents 6ad8c3c + 045c328 commit 773346c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/packages/core/collection/components/collection-view-bundle.element.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ export class UmbCollectionViewBundleElement extends UmbLitElement {
110110

111111
#onClick(view: UmbCollectionViewLayout) {
112112
this.#collectionContext?.setLastSelectedView(this._entityUnique, view.alias);
113+
114+
setTimeout(() => {
115+
// TODO: This ignorer is just neede for JSON SCHEMA TO WORK, As its not updated with latest TS jet.
116+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
117+
// @ts-ignore
118+
this._popover?.hidePopover();
119+
}, 100);
113120
}
114121

115122
override render() {
@@ -151,15 +158,12 @@ export class UmbCollectionViewBundleElement extends UmbLitElement {
151158
css`
152159
:host {
153160
--uui-button-content-align: left;
161+
--uui-menu-item-flat-structure: 1;
154162
}
155163
156164
.filter-dropdown {
157165
padding: var(--uui-size-space-3);
158166
}
159-
160-
umb-icon {
161-
display: inline-block;
162-
}
163167
`,
164168
];
165169
}

0 commit comments

Comments
 (0)