@frsource/autoresize-textarea
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -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.overflow="hidden",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(){(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}; | ||
//# 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.overflow="hidden",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(){(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)}}}}; | ||
//# 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.overflow="hidden",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 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}; | ||
//# 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.overflow="hidden",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="",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)}}}}}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@frsource/autoresize-textarea", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Minimalistic plugin to autosize your textareas! 💪", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
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
14335