Skip to content

Commit 7c03ae9

Browse files
phloxictipiirai
authored andcommitted
tabs: click on page load only with anchor tabs
Behave according to docs: only accept a quoted string when the tabs are a tags. Otherwise there is no way to prevent a click on page load when the location contains a hash, breaking initialIndex: -1 configuration.
1 parent d41b7b4 commit 7c03ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tabs/tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
});
241241

242242
// open initial tab
243-
if (location.hash) {
243+
if (location.hash && conf.tabs === "a") {
244244
self.click(location.hash);
245245
} else {
246246
if (conf.initialIndex === 0 || conf.initialIndex > 0) {

0 commit comments

Comments
 (0)