@itcenter-layout/masterpage
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -38,4 +38,3 @@ document.addEventListener('DOMContentLoaded', (event) => { | ||
e.preventDefault(); | ||
if(document.documentElement.clientWidth > 991 && inputField.value.length > 0) { | ||
navLangSearch.classList.remove("small-screen-search-open"); | ||
if(inputField.value.length > 0) { | ||
cancelSearch.style.display = "block"; | ||
@@ -87,4 +86,5 @@ } | ||
var dropdown = document.getElementById("dropdown"); | ||
if(dropdown) { | ||
dropdown.addEventListener("click", function (e) { | ||
var dropdownLink = document.getElementById("navbarDropdownMenuLink"); | ||
if(dropdownLink) { | ||
dropdownLink.addEventListener("click", function (e) { | ||
e.preventDefault(); | ||
@@ -116,2 +116,12 @@ if(!dropdown.classList.contains("open")) { | ||
var grayLayer = document.getElementById("gray-layer"); | ||
if (grayLayer) { | ||
grayLayer.addEventListener("click", function (e) { | ||
e.preventDefault(); | ||
if(body.classList.contains("show-drawer")) { | ||
body.classList.remove("show-drawer"); | ||
} | ||
}); | ||
} | ||
window.addEventListener('resize', function(e) { | ||
@@ -118,0 +128,0 @@ adaptStatusSidebar(); |
{ | ||
"name": "@itcenter-layout/masterpage", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "masterpage", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42695
1066