Closed
Description
As title, create a Textarea with :autoResize=true
and its model to contain some large text.
The Textarea will only adjust its height after the contents of the textarea dom element is changed by the user (so that its scrollheight is affected, e.g. by entering a newline)
Initially, this.cachedScrollHeight
is falsy, so that it will be set to this.$el.scrollHeight
by
Then, the code block following:
won't be executed, which results in the height of $el not being set to the scrollHeight.
The fix for this issue is simple, just remove:
That way, the height of $el will be adjusted, as
this.cachedScrollHeight !== this.$el.scrollHeight
Activity