]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
fix: return to initial state when reseting hash in Accordion & Tabs #11100
authorNicolas Coden <nicolas@ncoden.fr>
Sun, 26 Aug 2018 21:35:54 +0000 (23:35 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Sun, 26 Aug 2018 21:47:07 +0000 (23:47 +0200)
commit5ea51f3b96e494e3c01a581d826bc8da3cf4d3b4
tree930855e937ef89fa0072ef004c18f81670b785cc
parentbcd208dc447cfb0a62a18501805ce4d20be4307d
fix: return to initial state when reseting hash in Accordion & Tabs #11100

When deep-linking is enabled and the user goes back in the history up to when no hash is set, display the initially-selected content/tab instead of staying with the content/tab that was selected the first.

Closes https://github.com/zurb/foundation-sites/issues/11100
Replaces https://github.com/zurb/foundation-sites/issues/11101

Co-authored-by: Jamie Chong <jamie@hippocurious.com>
js/foundation.accordion.js
js/foundation.tabs.js