Fix close button: Test the anchor if it belongs to us
This commit is contained in:
parent
bcc03f8160
commit
7ca2e1d282
|
@ -413,7 +413,8 @@
|
|||
event.preventDefault();
|
||||
|
||||
// This is an anchor only
|
||||
if (href.substr(0, 1) === '#' && href.substr(1, 1) !== '!') {
|
||||
if (href.substr(0, 1) === '#' && href.length > 1
|
||||
&& href.substr(1, 1) !== '!') {
|
||||
self.handleAnchor(href);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue