vue-input-autosize
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -22,3 +22,2 @@ 'use strict'; | ||
this.mirror.classList.add("vue-input-autosize-mirror"); | ||
document.body.appendChild(this.mirror); | ||
@@ -34,2 +33,4 @@ this.el.addEventListener("input", this.check.bind(this, this.el), false); | ||
whiteSpace: "nowrap", | ||
opacity: 0, | ||
border: styles.getPropertyValue("border"), | ||
fontSize: styles.getPropertyValue("font-size"), | ||
@@ -39,8 +40,9 @@ fontFamily: styles.getPropertyValue("font-family"), | ||
letterSpacing: styles.getPropertyValue("letter-spacing"), | ||
padding: styles.getPropertyValue("padding"), | ||
textTransform: styles.getPropertyValue("text-transform"), | ||
ariaHidden: true | ||
}); | ||
document.body.appendChild(_this.mirror); | ||
_this.check(_this.el); | ||
}, 0); | ||
// this.vm.$watch() | ||
}, | ||
@@ -47,0 +49,0 @@ update: function update(newVal, oldVal) { |
@@ -26,3 +26,2 @@ (function (global, factory) { | ||
this.mirror.classList.add("vue-input-autosize-mirror"); | ||
document.body.appendChild(this.mirror); | ||
@@ -38,2 +37,4 @@ this.el.addEventListener("input", this.check.bind(this, this.el), false); | ||
whiteSpace: "nowrap", | ||
opacity: 0, | ||
border: styles.getPropertyValue("border"), | ||
fontSize: styles.getPropertyValue("font-size"), | ||
@@ -43,8 +44,9 @@ fontFamily: styles.getPropertyValue("font-family"), | ||
letterSpacing: styles.getPropertyValue("letter-spacing"), | ||
padding: styles.getPropertyValue("padding"), | ||
textTransform: styles.getPropertyValue("text-transform"), | ||
ariaHidden: true | ||
}); | ||
document.body.appendChild(_this.mirror); | ||
_this.check(_this.el); | ||
}, 0); | ||
// this.vm.$watch() | ||
}, | ||
@@ -51,0 +53,0 @@ update: function update(newVal, oldVal) { |
{ | ||
"name": "vue-input-autosize", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A simple Vue.js directive to autosize text input fields", | ||
@@ -19,4 +19,4 @@ "license": "MIT", | ||
"build:umd": "BUILD_ENV=umd rollup -c", | ||
"example": "vbuild --dev -e example", | ||
"example:build": "vbuild -e example -t VueInputAutosize", | ||
"example": "vbuild --dev", | ||
"example:build": "vbuild -t VueInputAutosize", | ||
"test": "karma start karma.conf.js --single-run true --auto-watch false", | ||
@@ -23,0 +23,0 @@ "watch-test": "karma start karma.conf.js --single-run false --auto-watch true" |
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
8156
123