Neophen
LiveView SwiftUI WKWebView `phx-click`,`phx-click-away` broken after opening Safari
Description
I have ran into a weird issue that a click event stops working after navigating away from my iOS app which is basically a WKWebView. This does not reproduce on iOS Safari as well as PWA mode on iOS.
Layout
I have an iOS app which opens a WKWebView pointed to my LiveView app, after opening any external link in an external app, and returning to the app the LiveView can’t handle executing those events. I can log the click event, i can find the reference element, but no matter what i’ve done the liveview.execjs event doesn’t do it’s job on the target element.
Workaround
I made a custom web element to handle this. as i’ve tested and a pure javascript implementation still works fine, it’s something specific with liveview, in this edge case.
First Post!
Neophen
Ok this is actually a deeper issue made a bug report here:
https://github.com/phoenixframework/phoenix_live_view/issues/3041
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









