Skip to content

fix(ui5-shellbar): prevent search auto-expand on non-desktop resize - #14025

Merged
kgogov merged 1 commit into
mainfrom
fix/ui5-shellbar-search-auto-expand-mobile
Sep 4, 2026
Merged

fix(ui5-shellbar): prevent search auto-expand on non-desktop resize#14025
kgogov merged 1 commit into
mainfrom
fix/ui5-shellbar-search-auto-expand-mobile

Conversation

@kgogov

@kgogov kgogov commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

On phones and tablets, rotating the device triggers the ShellBar's resize-based auto-expand logic, opening the full-screen search dialog without any user intent.

Guard the expand branch in both ShellBarSearch and ShellBarSearchLegacy with isDesktop() so that auto-expansion from resize events is limited to desktop environments. On non-desktop devices, expansion must come from an explicit user tap on the search icon.

Fixes: auto-open of full-screen search on phone/tablet orientation change
SNOW: CS20260013061846

On phones and tablets, rotating the device triggers the ShellBar's
resize-based auto-expand logic, opening the full-screen search dialog
without any user intent.

Guard the expand branch in both ShellBarSearch and ShellBarSearchLegacy
with isDesktop() so that auto-expansion from resize events is limited to
desktop environments. On non-desktop devices, expansion must come from
an explicit user tap on the search icon.

Fixes: auto-open of full-screen search on phone/tablet orientation change
SNOW: CS20260013061846
@kgogov
kgogov deployed to netlify-preview September 4, 2026 08:25 — with GitHub Actions Active
@dobrinyonkov
dobrinyonkov self-requested a review September 4, 2026 08:26
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

@kgogov
kgogov merged commit 16df88a into main Sep 4, 2026
13 checks passed
@kgogov
kgogov deleted the fix/ui5-shellbar-search-auto-expand-mobile branch September 4, 2026 08:57
@kgogov
kgogov deployed to netlify-preview September 4, 2026 08:57 — with GitHub Actions Active
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

🧹 Preview deployment cleaned up: https://pr-14025--ui5-webcomponents.netlify.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants