%PDF- %PDF-
Direktori : /proc/self/root/snap/lxd/29351/share/lxd-ui/assets/ |
Current File : //proc/self/root/snap/lxd/29351/share/lxd-ui/assets/AutoExpandingTextArea-3a779a81.js |
import{r as x,j as i,d as c}from"./index-13b2882d.js";const l=e=>{const{dynamicHeight:s,id:o,value:r,rows:a}=e;return x.useLayoutEffect(()=>{if(s){const t=document.getElementById(o||"");if(t){t.style.height="0px";const n=t.scrollHeight;t.style.height=`${n+1}px`}}},[r]),i.jsx("div",{children:i.jsx(c.Textarea,{...e,rows:s?void 0:a})})};export{l as A};