Swiping 'back' in Safari on iOS disables interactivity
See original GitHub issueEven on a freshly installed Rails 7.0.3.1 with a generated User scaffold, swiping ‘back’ once (doesn’t matter on which page) renders anything with a turbo-method useless. The only code that I changed is the Destroy button. However, I have first spotted this behavior in one of my more complex apps.
Expected behavior: “Destroy this user” should still work even after Steps to reproduce:
- In a default Rails setup with a User scaffold update the destroy button’s code with a turbo_method.
- Open website in Safari on iOS. Add a user. Destroy works at this point. Click ‘Back to users’. Swipe ‘back’ and destroy no longer works.
- Only thing that restores interactivity is a refresh.
- In Firefox on iOS this issue is (strangely enough) not present. However, on Firefox Focus on iOS turbo does not seem to work at all.
<%= button_to "Destroy this user", @user, method: :delete, form: { data: { turbo_method: :delete, turbo_confirm: 'Are you sure?' } } %>
I believe my issue might be related to #302, though I’m not sure.
Issue Analytics
- State:
- Created a year ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
How do I disable Swipe to Go Back a page - Apple Discussions
How do I disable Swipe to Go Back a page in Safari for the iphone. I accidentally swipe and go back and forth...
Read more >Prevent swiping between web pages in iPad Safari
In iOS 13.4+ you can now preventDefault on "touchstart" ... Swipe left is the "go back to the previous page in my navigation...
Read more >bug: ios, cannot disable Safari swipe to go back when running ...
Swipe gesture cannot be disabled on native iOS or Android devices. When swiping back, if using [swipeGesture]=true the animation/back gesture ...
Read more >How to disable interactive swipe to dismiss for view controllers
Fortunately, UIKit has a dedicated property that deactivates the swipe to dismiss behavior: isModalInPresentation . This is false by default, ...
Read more >you can make it so Safari doesn't reload pages every ... - Reddit
Set the swipe gestures in BTT to do the hot keys in safari for forward and back, and BAM! You get your gestures...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Feels well worth turning this into a feature of Turbo. Even if it’s a specific path to work around an iOS bug. Gotta deal with reality as it is.
@domchristie If this issue is still present 5 years later, perhaps we should assume there’s no fix coming 😄. Maybe we can bake something like this straight into Turbo?