Skip to content

Fixed context menu appearing and disappearing in some cases on iOS#2897

Draft
mazunin-v-jb wants to merge 1 commit intojb-mainfrom
v.mazunin/context-menu-disappearing-fixes
Draft

Fixed context menu appearing and disappearing in some cases on iOS#2897
mazunin-v-jb wants to merge 1 commit intojb-mainfrom
v.mazunin/context-menu-disappearing-fixes

Conversation

@mazunin-v-jb
Copy link
Copy Markdown

Fixes:
CMP-7769 [iOS] TextField. Сontext menu appears when selecting an option in ExposedDropdownMenu
CMP-9316 [ios]. context menu doesn't hide after backNavigation

Testing

This should be tested by QA

Release Notes

Fixes - iOS

  • Fixed the context menu dismissal after back swipe navigation on iOS.
  • Fixed the context menu appearing in a text field inside ExposedDropdownMenu on iOS.

updateView()
}

textUIView?.isFirstResponder()?.let { if (!(it)) { return } }
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

  1. The code before won't make the textUIView first responder, so the placement here is controversial. Maybe before the creating of the textUIView is a good place.
  2. As far as I remember, for older iOS it was a requirement - to become a first responder to show menu. See the - (void)scheduleShowMenuController. Will this check work also for the selection container?
  3. If menu isn't displaying for Android, maybe the source of the issue somewhere in a different place - where the showMenu call occurred?

@mazunin-v-jb mazunin-v-jb marked this pull request as draft March 20, 2026 01:55
@mazunin-v-jb mazunin-v-jb force-pushed the v.mazunin/context-menu-disappearing-fixes branch from 42aadb4 to 781df24 Compare March 27, 2026 12:42
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