does anyone know of some good vanilla javascript for an auto-expanding textarea? Maybe there is a pure css solution?
-
-
Replying to @heapwolf
@hij1nx we should get
@jaffathecake to add this to his list of 'common sense' spec additions (re: image lazy load). Currently requires js.2 replies 0 retweets 1 like -
Replying to @SlexAxton
@SlexAxton @hij1nx@jaffathecake `textarea.addEventListener('keyup',function(){while(textarea.scrollTop)textarea.rows++});` ?3 replies 1 retweet 1 like -
Replying to @WebReflection
@WebReflection@SlexAxton @hij1nx@jaffathecake@marcoos Even better: use `input` instead of `keyup`. http://mths.be/notes/oninput2 replies 0 retweets 3 likes -
Replying to @mathias
@mathias@SlexAxton @hij1nx@jaffathecake@marcoos you are not reviewing my code wrote to fit in a tweet … are you? :P more to improve there1 reply 0 retweets 0 likes -
Replying to @WebReflection
@mathias@SlexAxton @hij1nx@jaffathecake@marcoos but definitively the feature detection wouldn't have made it in 140 chars1 reply 0 retweets 0 likes
@WebReflection @SlexAxton @hij1nx @jaffathecake I meant: nowadays (modern browsers) the feature test is not really necessary anymore
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.