Comments (3)
Thanks to the help from discord members, I can confirm that you can work around this issue by adding the following to the inner Link node.
Link {
// add this
onclick: |e: MouseEvent| e.stop_propagation(),
...
}
from dioxus.
Hello,
According to the HTML specification an a
element mustn't be nested inside another a
element.
Is the expected behaviour really to navigate to the inner link?
Maybe a warning/error would be more appropriate.
In which case would you want to nest two links?
from dioxus.
Links are not supposed to be nested - this is not an issue on the Dioxus side of things. The stop_propagation workaround does fix this for this particular case, however, you shouldn't be nesting links in the first place. We could warn if a link is nested within another link, but I think the browser will also warn you.
from dioxus.
Related Issues (20)
- CSS asset links not working in subcrates in 0.6
- Couldn't retrieve cargo metadata
- Use more intuitive icons for roadmap status HOT 1
- Provide a more useful error message for hydration errors
- Fullstack examples fail because of missing "version" in "package" section of main Cargo.toml
- inline r# blocks are attempting to escape curlies when they shouldn't HOT 1
- Delayed CSS loading with asset system HOT 2
- CLI: Color-code logs and get rid of tabs HOT 2
- Add `relatedTarget` property to `FocusEvent` HOT 1
- Readme only mentions MIT, but Apache-2 also in repo
- Incorrect property binding during custom element hot reload
- dioxus-cli is built with wasm-bindgen 0.2.92 when my application is built with 0.2.93 (when using Nix) HOT 6
- Script `src` not loading correctly in HTML head HOT 2
- CompileError: WebAssembly.instantiateStreaming(): HOT 1
- Ability to add attributes to the Style tag in head
- Can not install [email protected] on WSL HOT 2
- Component with `key` attribute does not pass a `ReadOnlySIgnal<bool>` attribute properly HOT 2
- closure invoked recursively or after being dropped HOT 3
- Overtly verbose "build progress" ouput when running `dx build`
- head::Link creates link twice with SSR HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dioxus.