makeup-expander
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -196,2 +196,3 @@ 'use strict'; | ||
if (this.options.autoCollapse === true) { | ||
this.collapseOnClickOut = true; | ||
this.collapseOnFocusOut = true; | ||
@@ -198,0 +199,0 @@ } |
{ | ||
"name": "makeup-expander", | ||
"description": "Creates the basic interactivity for an element that expands and collapses another element.", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"main": "index.js", | ||
@@ -22,7 +22,5 @@ "repository": "https://github.com/makeup-js/makeup-expander.git", | ||
"watch": "onchange src/*.js docs/*.js -- npm run build", | ||
"transpile": "babel src/index.js --out-file index.js" | ||
"transpile": "babel src/index.js --out-file index.js", | ||
"version": "npm run prepublishOnly && git add -A docs/static test/static" | ||
}, | ||
"pre-commit": [ | ||
"prepublishOnly" | ||
], | ||
"keywords": [ | ||
@@ -51,3 +49,2 @@ "makeup", | ||
"parallelshell": "^3", | ||
"pre-commit": "^1", | ||
"puppeteer": "^1.2.0", | ||
@@ -54,0 +51,0 @@ "rimraf": "^2" |
@@ -122,3 +122,3 @@ # makeup-expander | ||
* `el`: the root widget el | ||
* `options.autoCollapse`: applies a collapse behavior (`collapseOnClick`, `collapseOnFocusOut`, `collapseOnMouseOut`) based on expand behaviour (default: false) | ||
* `options.autoCollapse`: applies one or more collapse behaviors (`collapseOnClickOut`, `collapseOnFocusOut`, `collapseOnMouseOut`) based on expand behaviour (default: false) | ||
* `options.collapseOnClickOut`: whether the content should collapse when clicking outside of content (default: false) | ||
@@ -125,0 +125,0 @@ * `options.collapseOnFocusOut`: whether the content should collapse when focus leaves the content (default: false) |
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
18
230
193368