This fixes how the input behaves on some mobile browsers, such as firefox mobile.
Previously, the input would flicker in and out.
That was due to setting the height to zero on the input element, and then setting it to a new value. For some reason it draws that quick enough for it to be an issue.
Part of the way it solves this is by just not resizing the input on mobile, and just using a scrollbar. This is, in fact, probably desirable as the previous behavior would make it relatively easy to make a really long message fill most of your screen.
This fix does seem to be a bit buggy in-of-itself, with some odd positioning behavior on mobile, but it actually makes it reasonably usable.
This fixes how the input behaves on some mobile browsers, such as firefox mobile.
Previously, the input would flicker in and out.
That was due to setting the height to zero on the
input
element, and then setting it to a new value. For some reason it draws that quick enough for it to be an issue.Part of the way it solves this is by just not resizing the input on mobile, and just using a scrollbar. This is, in fact, probably desirable as the previous behavior would make it relatively easy to make a really long message fill most of your screen.
This fix does seem to be a bit buggy in-of-itself, with some odd positioning behavior on mobile, but it actually makes it reasonably usable.