Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: slot dashboard widgets instead of dom reordering #8359

Merged
merged 8 commits into from
Dec 19, 2024

Conversation

tomivirkki
Copy link
Member

@tomivirkki tomivirkki commented Dec 17, 2024

Description

Refactor <vaadin-dashboard> to reorder the widgets by assigning them updated slot names instead of reordering the elements in the DOM. This will fix issues such as a <vaadin-grid> losing its scroll position on reorder when used as a widget child element.

NOTE: This change will require picking up this commit to the web component version bump PR in flow-components

Type of change

Bugfix/refactor

@tomivirkki tomivirkki marked this pull request as draft December 17, 2024 12:04
@tomivirkki tomivirkki force-pushed the fix/dashboard-slot-widgets branch from a7e9b88 to c235998 Compare December 19, 2024 09:52
@tomivirkki tomivirkki force-pushed the fix/dashboard-slot-widgets branch from c235998 to f2d2cb0 Compare December 19, 2024 11:06
@tomivirkki tomivirkki marked this pull request as ready for review December 19, 2024 11:23
packages/dashboard/src/vaadin-dashboard-section.js Outdated Show resolved Hide resolved
packages/dashboard/src/vaadin-dashboard.js Outdated Show resolved Hide resolved
packages/dashboard/src/vaadin-dashboard.js Outdated Show resolved Hide resolved
@web-padawan web-padawan removed the request for review from DiegoCardoso December 19, 2024 14:09
@tomivirkki tomivirkki merged commit 5583b5d into main Dec 19, 2024
9 checks passed
@tomivirkki tomivirkki deleted the fix/dashboard-slot-widgets branch December 19, 2024 14:59
sissbruecker pushed a commit that referenced this pull request Dec 19, 2024
Co-authored-by: Tomi Virkki <tomivirkki@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants