Deactivate tabs by default

This commit is contained in:
squidfunk
2017-02-26 15:30:48 +01:00
parent d52f605200
commit 842146183d
6 changed files with 12 additions and 12 deletions

View File

@@ -90,9 +90,10 @@ function initialize(config) { // eslint-disable-line func-style
], new Material.Header.Shadow("[data-md-component=container]")))
/* Component: tabs visibility toggle */
new Material.Event.Listener(window, [
"scroll", "resize", "orientationchange"
], new Material.Tabs.Toggle("[data-md-component=tabs]")).listen()
if (document.querySelector("[data-md-component=tabs]"))
new Material.Event.Listener(window, [
"scroll", "resize", "orientationchange"
], new Material.Tabs.Toggle("[data-md-component=tabs]")).listen()
/* Component: sidebar with navigation */
new Material.Event.MatchMedia("(min-width: 1220px)",