Skip to content

Commit

Permalink
Use pull request foundation#11485 from ncoden/fix/tabs-deep-link-cust…
Browse files Browse the repository at this point in the history
…om-target-11484 for v6.5.0

f974a5b fix: use data-tabs-target to update history in Tabs deep-linking foundation#11484

Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
  • Loading branch information
ncoden committed Sep 10, 2018
1 parent 245d873 commit a6a360e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/foundation.tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,10 @@ class Tabs extends Plugin {

//either replace or update browser history
if (this.options.deepLink && !historyHandled) {
var anchor = $target.find('a').attr('href');

if (this.options.updateHistory) {
history.pushState({}, '', anchor);
history.pushState({}, '', hash);
} else {
history.replaceState({}, '', anchor);
history.replaceState({}, '', hash);
}
}

Expand Down

0 comments on commit a6a360e

Please # to comment.