mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-09-22 15:21:58 +00:00
fix: check href
null
This commit is contained in:
parent
327f901548
commit
2073b400df
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ class Interpreter {
|
|||
if (should_prevent_default !== `onclick`) {
|
||||
if(element.tagName == "A") {
|
||||
const href = event.target.getAttribute("href")
|
||||
if (href !== "" || href !== null) {
|
||||
if (href !== "" && href !== null && href !== undefined) {
|
||||
rpc.call("browser_open", {
|
||||
mounted_dom_id: parseInt(real_id),
|
||||
href: event.target.getAttribute("href")
|
||||
|
|
Loading…
Reference in a new issue