useOverlay, useInteractOutside on iOS12 causes modals to disappear instantly
๐ Bug Report
As title says, on iOS 12 when using useOverlay (and useInteractOutside under the hood, which I believe might be a source of issue) the modal (or any other dialog basically) disappears instantly as presented on the movie attached. It can be easily reproduced by launching docs of useDialog in BrowserStack, on Safari 12
https://user-images.githubusercontent.com/26162660/125646656-35dee1b8-3b24-4603-8700-978fb7e77bee.mp4
๐ค Expected Behavior
The dialog should not close when appearing.
๐ฏ Current Behavior
Dialog closes instantly after appearing.
๐ Possible Solution
๐ฆ Context
Even though the market share of iOS 12 is pretty low, the issue is quite severe - it completely disables the usage of dialog.
๐ป Code Sample
๐ Your Environment
| Software | Version(s) |
|---|---|
| react-spectrum | 1.2.2 (current latest) |
| Browser | iOS Safari 12 |
| Operating System | iOS 12 |
๐งข Your Company/Team
๐ท Tracking Issue (optional)
Just tested in Simulator on iOS 12.0 and wasn't able to reproduce. Tested on both iPhone 5s and iPhone X sims:
Update: Just tried on iPhone Xs sim and I am seeing the issue.
We'd be happy to accept a fix for this but we won't be picking this up ourselves due to the limited area of effect (only iOS 12 + iPhone Xs) of this bug.
Found this issue (or something similar) in the new useSelect on an ipad v 12.5.5
@mitchellwarr do you have any updates to how to reproduce? I'm not seeing it on my iPhone. though admittedly i am on much different versions Would you be willing to do any debugging? We don't have much to go off unless you have some new repro steps/videos you'd be willing to share. Thank you! anything helps :)
@snowystinger yes ive just finished creating a new issue for this here: https://github.com/adobe/react-spectrum/issues/2686
its different enough, i think, to this issue.
@mitchellwarr o, fabulous, thank you!!
@snowystinger glad to help! i think this issue isnt overly specific, since it was the first browserstack version i tried with iOS 12 and stumbled on the bug.
can confirm in local with iOS 14 everything was fine