KEMBAR78
refactor!: update combo-box overlay to use native popover by web-padawan · Pull Request #9815 · vaadin/web-components · GitHub
Skip to content

Conversation

@web-padawan
Copy link
Member

@web-padawan web-padawan commented Jul 28, 2025

Description

Fixes #9721

Depends on #9814

Updated vaadin-combo-box to use native popover for the overlay.

Also removed no longer needed bringToFront() workaround (same change was done for vaadin-date-picker).

Type of change

  • Breaking change

Note

Flow components branch: https://github.com/vaadin/flow-components/compare/proto/combo-native-popover

@web-padawan web-padawan force-pushed the refactor/native-popover-combo-box branch 2 times, most recently from a3d1983 to c580703 Compare July 28, 2025 13:32
connectedCallback() {
super.connectedCallback();

const hostDir = this._getHostDir();
Copy link
Member Author

Choose a reason for hiding this comment

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

This stopped working because with native popover, overlay no longer gets re-connected while opening.
So I replaced it with .dir="${this.dir}" for combo-box & MSCB, and dir="ltr" for the time-picker.

@web-padawan web-padawan force-pushed the refactor/native-popover-combo-box branch from 62f176c to 2b6b1c0 Compare July 29, 2025 08:17
@web-padawan web-padawan force-pushed the refactor/native-popover-combo-box branch from 2b6b1c0 to 8217970 Compare July 29, 2025 13:57
@web-padawan web-padawan marked this pull request as ready for review July 29, 2025 13:57
@web-padawan web-padawan requested a review from sissbruecker July 29, 2025 13:57
@web-padawan web-padawan force-pushed the refactor/native-popover-combo-box branch from 6c9ca3a to 7b508d7 Compare July 29, 2025 18:46
@sonarqubecloud
Copy link

@web-padawan web-padawan merged commit b4d90c2 into main Jul 29, 2025
10 checks passed
@web-padawan web-padawan deleted the refactor/native-popover-combo-box branch July 29, 2025 18:51
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 25.0.0-beta2.

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.

[combo-box] Update to use native popover for the overlay element

3 participants