Skip to content

Commit

Permalink
blur and dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jcgertig committed Jan 9, 2017
1 parent 435bd59 commit 11ce3bd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
1 change: 1 addition & 0 deletions date-input-polyfill.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ date-input-polyfill {
&[data-open="false"] {
visibility: hidden;
z-index: -100 !important;
top: 0;
}
&[data-open="true"] {
visibility: visible;
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "date-input-polyfill",
"version": "2.11.0",
"version": "2.11.5",
"description": "Automatically adds datepickers to input[type=date] on IE, Firefox, and OS X Safari.",
"main": "date-input-polyfill.dist.js",
"contributors": [
Expand Down Expand Up @@ -34,21 +34,21 @@
"analyze": true,
"license": "MIT",
"devDependencies": {
"babel-core": "^6.9.0",
"babel-loader": "^6.2.4",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-stage-3": "^6.5.0",
"css-loader": "^0.23.1",
"eslint": "^2.10.2",
"node-sass": "^3.7.0",
"sass-loader": "^3.2.0",
"babel-core": "^6.17.0",
"babel-loader": "^6.2.5",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.16.0",
"babel-preset-stage-3": "^6.17.0",
"css-loader": "^0.25.0",
"eslint": "^3.7.1",
"node-sass": "^3.10.1",
"sass-loader": "^4.0.2",
"style-loader": "^0.13.1",
"webpack": "^1.13.1",
"webpack-dev-server": "^1.14.1"
"webpack": "^1.13.2",
"webpack-dev-server": "^1.16.2"
},
"dependencies": {
"babel-runtime": "^6.9.0"
"babel-runtime": "^6.11.6"
},
"scripts": {
"start": "./node_modules/.bin/webpack-dev-server",
Expand Down
1 change: 1 addition & 0 deletions picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class Picker {
hide() {
this.container.setAttribute(`data-open`, this.isOpen = false);
// Close the picker when clicking outside of a date input or picker.
if(this.input) { this.input.blur() }
document.removeEventListener(`mousedown`, this.removeClickOut);
document.removeEventListener(`touchstart`, this.removeClickOut);
}
Expand Down

0 comments on commit 11ce3bd

Please sign in to comment.