Repository navigation
Mobile: Fix issues with modals created via plugins - #16674
Merged
laurent22 merged 20 commits intoOct 11, 2026
Merged
Conversation
…en the keyboard is open
Owner
|
Please see below:
|
Collaborator
Author
|
@coderabbitai resume |
Collaborator
Author
Owner
Should be fixed
Should be explained, not necessarily changed
|
Collaborator
Author
|
Done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


There are several issues with plugin-launched modals on mobile, resulting in a poor experience for plugins that use them. The most significant is that, on both web and native platforms, a modal launched from the plugin panel (accessible through the jigsaw-piece icon) opens behind the panel. Users must close the plugin panel to see the modal and may assume that their action did nothing.
This PR adds a useNativeModal prop to Modal.tsx. When set to false, the modal content is rendered without wrapping it in a native ModalComponent. The plugin panel disables the native modal and instead renders within a Portal, placing it in the same modal hierarchy as plugin-launched dialogs. This allows those dialogs to appear above the panel, receive input and accessibility focus, and block interaction with the panel until closed.
Other issues addressed:
Testing
I tested these changes using the Agenda plugin, where these issues are clearly visible.
Testing on Android:
Before change:
Screen_Recording_20260927_003205_Joplin.mp4
After change:
Screen_Recording_20260927_003248_Joplin2.mp4
Testing on web:
Before change:
wYjx9SobYs.before.mp4
After change:
v5ys6P51Ar.after.mp4