fix(router): Don't capture clicks on links with target attr (#24110)
This commit is contained in:
parent
3916398f1a
commit
7f9331fc8d
1 changed files with 4 additions and 0 deletions
|
|
@ -37,6 +37,10 @@ $("body").on("click", "a", function (e) {
|
|||
const href = target_element.getAttribute("href");
|
||||
const is_on_same_host = target_element.hostname === window.location.hostname;
|
||||
|
||||
if (target_element.getAttribute("target") === "_blank") {
|
||||
return;
|
||||
}
|
||||
|
||||
const override = (route) => {
|
||||
e.preventDefault();
|
||||
frappe.set_route(route);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue