@frsource/autoresize-textarea
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -1,2 +0,2 @@ | ||
var t=function(t){if(!t.getAttribute("data-frs-autoresize-textarea")){t.setAttribute("data-frs-autoresize-textarea","true");var e="",i=function(){(t.scrollHeight>t.clientHeight||e===t.style.height)&&(t.style.height="auto",t.style.height=e=t.scrollHeight+(t.offsetHeight-t.clientHeight)+"px")};return t.style.boxSizing="border-box",i(),t.addEventListener("input",i),{detach:function(){t.removeEventListener("input",i)}}}};export{t as attach}; | ||
var t=function(t){if(!t.getAttribute("data-frs-autoresize-textarea")){t.setAttribute("data-frs-autoresize-textarea","true");var e="",i=function(){if(t.scrollHeight>t.clientHeight||e===t.style.height){var i=t.style.overflow;t.style.height="auto",t.style.overflow="hidden",t.style.height=e=t.scrollHeight+(t.offsetHeight-t.clientHeight)+"px",t.style.overflow=i}};return t.style.boxSizing="border-box",i(),t.addEventListener("input",i),{detach:function(){t.removeEventListener("input",i)}}}};export{t as attach}; | ||
//# sourceMappingURL=index.es.js.map |
@@ -1,2 +0,2 @@ | ||
exports.attach=function(t){if(!t.getAttribute("data-frs-autoresize-textarea")){t.setAttribute("data-frs-autoresize-textarea","true");var e="",i=function(){(t.scrollHeight>t.clientHeight||e===t.style.height)&&(t.style.height="auto",t.style.height=e=t.scrollHeight+(t.offsetHeight-t.clientHeight)+"px")};return t.style.boxSizing="border-box",i(),t.addEventListener("input",i),{detach:function(){t.removeEventListener("input",i)}}}}; | ||
exports.attach=function(t){if(!t.getAttribute("data-frs-autoresize-textarea")){t.setAttribute("data-frs-autoresize-textarea","true");var e="",i=function(){if(t.scrollHeight>t.clientHeight||e===t.style.height){var i=t.style.overflow;t.style.height="auto",t.style.overflow="hidden",t.style.height=e=t.scrollHeight+(t.offsetHeight-t.clientHeight)+"px",t.style.overflow=i}};return t.style.boxSizing="border-box",i(),t.addEventListener("input",i),{detach:function(){t.removeEventListener("input",i)}}}}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
const t=t=>{if(t.getAttribute("data-frs-autoresize-textarea"))return;t.setAttribute("data-frs-autoresize-textarea","true");let e="";const i=()=>{(t.scrollHeight>t.clientHeight||e===t.style.height)&&(t.style.height="auto",t.style.height=e=t.scrollHeight+(t.offsetHeight-t.clientHeight)+"px")};return t.style.boxSizing="border-box",i(),t.addEventListener("input",i),{detach(){t.removeEventListener("input",i)}}};export{t as attach}; | ||
const t=t=>{if(t.getAttribute("data-frs-autoresize-textarea"))return;t.setAttribute("data-frs-autoresize-textarea","true");let e="";const r=()=>{if(t.scrollHeight>t.clientHeight||e===t.style.height){const r=t.style.overflow;t.style.height="auto",t.style.overflow="hidden",t.style.height=e=t.scrollHeight+(t.offsetHeight-t.clientHeight)+"px",t.style.overflow=r}};return t.style.boxSizing="border-box",r(),t.addEventListener("input",r),{detach(){t.removeEventListener("input",r)}}};export{t as attach}; | ||
//# sourceMappingURL=index.modern.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e||self).autoresizeTextarea={})}(this,function(e){var t="data-frs-autoresize-textarea";e.attach=function(e){if(!e.getAttribute(t)){e.setAttribute(t,"true");var i="",n=function(){(e.scrollHeight>e.clientHeight||i===e.style.height)&&(e.style.height="auto",e.style.height=i=e.scrollHeight+(e.offsetHeight-e.clientHeight)+"px")};return e.style.boxSizing="border-box",n(),e.addEventListener("input",n),{detach:function(){e.removeEventListener("input",n)}}}}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e||self).autoresizeTextarea={})}(this,function(e){var t="data-frs-autoresize-textarea";e.attach=function(e){if(!e.getAttribute(t)){e.setAttribute(t,"true");var i="",o=function(){if(e.scrollHeight>e.clientHeight||i===e.style.height){var t=e.style.overflow;e.style.height="auto",e.style.overflow="hidden",e.style.height=i=e.scrollHeight+(e.offsetHeight-e.clientHeight)+"px",e.style.overflow=t}};return e.style.boxSizing="border-box",o(),e.addEventListener("input",o),{detach:function(){e.removeEventListener("input",o)}}}}}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@frsource/autoresize-textarea", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Minimalistic plugin to autosize your textareas! 💪", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -38,3 +38,3 @@ <p align="center"> | ||
<br>Mobile & desktop-friendly | ||
<br>Performant & with small bundle size (less than 370B!) | ||
<br>Performant & with small bundle size (less than 390B!) | ||
<br>Published as separate bundles for JS ES5 or modern browsers thanks to <a href="https://www.npmjs.com/package/microbundle">microbundle</a> | ||
@@ -41,0 +41,0 @@ <br>Written completely in <a href="https://www.typescriptlang.org">typescript</a></i> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15677