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: select element not working on Windows #29742

Merged
merged 1 commit into from Jun 18, 2021
Merged

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Jun 16, 2021

Description of Change

Closes #29665.

Refs #28938 - previously the call to blink::WebView::SetUseExternalPopupMenu was guarded by USE_EXTERNAL_POPUP_MENU - the refactor removed this for the moved call to the selfsame function but that flag is only defined on macOS and Android. This caused the element dropdown to stop working on Windows. We don't have access to USE_EXTERNAL_POPUP_MENU within Blink so just fix this by moving inside a macOS-only guard.

Checklist

Release Notes

Notes: Fixed the <select> element dropdown not appearing on Windows or Linux.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/14-x-y labels Jun 16, 2021
@codebytere codebytere requested a review from a team as a code owner June 16, 2021 23:17
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jun 16, 2021
@Prinzhorn
Copy link
Contributor

This caused the element dropdown to stop working on Windows

@codebytere I didn't comment on #29665, but this reproduces on Ubuntu as well. Does the fix account for that?

@codebytere
Copy link
Member Author

codebytere commented Jun 17, 2021

@Prinzhorn it does! The issue was that the function should be called only on macOS (or Android, but that's not relevant to Electron) and this makes that the case again.

@Prinzhorn
Copy link
Contributor

@codebytere thanks! You might want to update the release notes to reflect that.

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jun 17, 2021
@codebytere codebytere merged commit 4450327 into main Jun 18, 2021
@codebytere codebytere deleted the fix-select-windows branch June 18, 2021 07:05
@release-clerk
Copy link

release-clerk bot commented Jun 18, 2021

Release Notes Persisted

Fixed the &lt;select&gt; element dropdown not appearing on Windows or Linux.

@trop
Copy link
Contributor

trop bot commented Jun 18, 2021

I have automatically backported this PR to "14-x-y", please check out #29771

BlackHole1 pushed a commit to BlackHole1/electron that referenced this pull request Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: HTML select tag not rendering the dropdown
4 participants