Skip to content

Fix <a> and iframe navigation#5545

Open
martinmr wants to merge 1 commit into
DioxusLabs:mainfrom
trane-project:main
Open

Fix <a> and iframe navigation#5545
martinmr wants to merge 1 commit into
DioxusLabs:mainfrom
trane-project:main

Conversation

@martinmr
Copy link
Copy Markdown
Contributor

@martinmr martinmr commented May 9, 2026

It appears that the code that is supposed to intercept clicks to external links in elements is not working consistently. Move it further up the handleEvent function so that is executed regardless of the response of sending a serialized event.

Also remove all the logic added in the rust side since it cannot handle both cases and this handling code already existed. Also removed the navigation handler that was recently introduced to attempt to fix the issue.

In my local testing, both iframes and links work correctly. However, since @jkelleyrtp was seeing different behavior in the same version of macOS, it needs further testing.

If this works, it should fix #5331

It appears that the code that is supposed to intercept clicks to external
links in <a> elements is not working consistently. Move it further up the
handleEvent function so that is executed regardless of the response of
sending a serialized event.

Also remove all the logic added in the rust side since it cannot handle both
cases and this handling code already existed. Also removed the navigation
handler that was recently introduced to attempt to fix the issue.

In my local testing, both iframes and links work correctly. However, since others
are seeing the same behavior in the same version of macOS, it needs further testing.
@martinmr martinmr requested a review from a team as a code owner May 9, 2026 22:37
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.

iframes no longer working with v0.7

1 participant