Skip to content

Commit 4a2f796

Browse files
committed
fix bug with link redirect
#53
1 parent a640ddd commit 4a2f796

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js/angular/components/common/common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@
226226
}
227227
}
228228

229-
// if one or more elements were closed,
229+
// if one or more elements were closed and the target is not an href,
230230
// prevent the default action
231-
if (closedElements > 0) {
231+
if (closedElements > 0 && !tar.href) {
232232
e.preventDefault();
233233
}
234234
}

0 commit comments

Comments
 (0)