Skip to content

Commit d9b4afe

Browse files
author
zhangxinxu
committed
v2.7,7
history.back() know trigger element
1 parent 2036465 commit d9b4afe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mobilebone.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
*
4747
* @type string
4848
**/
49-
Mobilebone.VERSION = "2.7.6";
49+
Mobilebone.VERSION = "2.7.7";
5050

5151
/**
5252
* Whether catch attribute of href from element with tag 'a'
@@ -1561,6 +1561,7 @@
15611561
id: hash, // fix issue #83
15621562
history: false,
15631563
container: container,
1564+
target: document.activeElement, // add on v2.7.7
15641565
query: _queryToObject(hash.split('?')[1])
15651566
});
15661567
return;
@@ -1589,6 +1590,7 @@
15891590
Mobilebone.transition(pageIn, pageOut, Mobilebone.isBack(pageIn, pageOut), {
15901591
id: hash, // fix issue #83
15911592
history: false,
1593+
target: document.activeElement, // add on v2.7.7
15921594
query: _queryToObject(hash.split('?')[1])
15931595
});
15941596
}

0 commit comments

Comments
 (0)