Skip to content

React Island breaks Trigger/Portal component on iOS #13321

Open
@varna

Description

@varna

Astro Info

Astro                    v5.3.1
Node                     v20.15.1
System                   macOS (arm64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/react

If this issue only occurs in one browser, which browser is a problem?

iOS (Safari)

Describe the Bug

  1. Make a menubar with trigger and content (portal).
  2. Open up dev (npm run dev --host) or prod on iPhone
  3. Click the trigger, but nothing happens

I found that this happens only with Astro and iOS (all iPhone browsers use the same engine).

What's the expected result?

I expected some content to show up below the trigger. Like this:
https://stackblitz.com/edit/vitejs-vite-wy7sysgy?file=src%2FApp.tsx

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-aadin6kq?file=src%2Fcomponents%2FMenubar.tsx

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions