@springernature/global-dropdown
Advanced tools
Comparing version 2.0.0 to 2.0.1
# History | ||
## 2.0.1 (2021-11-15) | ||
* Fix `Cannot read properties of null (reading 'getAttribute')` errors when there's no `[data-dropdown]` element on the page | ||
## 2.0.0 (2021-11-08) | ||
@@ -4,0 +7,0 @@ BREAKING |
@@ -11,5 +11,8 @@ import {Expander} from '../../global-expander/js/expander'; | ||
const trigger = document.querySelector(`[${DATA_COMPONENT}]`); | ||
if (!trigger) { | ||
return; | ||
} | ||
const target = trigger.getAttribute(attributes.targetSelector); | ||
if (trigger.length === 0 || !target) { | ||
if (!target) { | ||
return; | ||
@@ -16,0 +19,0 @@ } |
{ | ||
"name": "@springernature/global-dropdown", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"license": "MIT", | ||
@@ -14,4 +14,4 @@ "description": "Display a contextual list of links controlled by a toggle", | ||
"scripts": { | ||
"postinstall": "npm_config_registry=https://registry.npmjs.org/ npx @springernature/util-context-warning@0.0.5 -p @springernature/global-dropdown@2.0.0 -v 16.0.0" | ||
"postinstall": "npm_config_registry=https://registry.npmjs.org/ npx @springernature/util-context-warning@0.0.5 -p @springernature/global-dropdown@2.0.1 -v 16.0.0" | ||
} | ||
} |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
21696
61