Skip to content

docs(mobile/4): note inline handlers only work in Jump - #557

Open
sonalidudhia wants to merge 1 commit into
NativePHP:mainfrom
sonalidudhia:docs/mobile-4-inline-handler-note
Open

sonalidudhia wants to merge 1 commit into
NativePHP:mainfrom
sonalidudhia:docs/mobile-4-inline-handler-note

Conversation

@sonalidudhia

@sonalidudhia sonalidudhia commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Inline handlers like @press="$showSheet = false" work in Jump previews but not in a real app — mobile-air (latest main, 11 Oct) doesn't support them. Anyone copying the modal / bottom-sheet examples ends up with a modal or sheet that won't close.

Examples left as-is (they work in Jump). Added a short note under the first example on each page showing the method-based alternative:

  • mobile/4/edge-components/modal.md
  • mobile/4/edge-components/bottom-sheet.md

If mobile-air later gains support for inline handlers, these notes can be removed.

Tests

  • Added modal_and_bottom_sheet_pages_note_that_inline_handlers_only_work_in_jump to DocumentationRenderingTest.

Inline handlers like @press="$showSheet = false" work in Jump previews
but mobile-air doesn't support them, so copied examples leave modals and
sheets that won't close. Add a note under the first modal and
bottom-sheet example showing the method-based alternative.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant