vue-autosize icon indicating copy to clipboard operation
vue-autosize copied to clipboard

Unwanted change of height when active

Open hackuun opened this issue 7 years ago • 4 comments

Hi. This bug is even in example - http://mage3k.github.io/vue-autosize/ When I set textarea active it added inline height and change height a few pixels.

I don't see such behavior in original autoresize.

Any chance to fix it?

hackuun avatar Aug 09 '17 22:08 hackuun

<tempalte>
  <textarea v-autosize="value" :style="{height: height}">{{value}}</textarea>
</tempalte>
<script>
  export default {
    data() {
      return {
        height: 100,
        value: 'some test'
      }
    }
  }
</script>

like this?

tthallos avatar Aug 11 '17 02:08 tthallos

It could work. But still, this breaks if I set more than 34px - it return to that value after I type. Why 34px?

hackuun avatar Aug 12 '17 16:08 hackuun

@mage3k Any update on this issue?

zelliott avatar Aug 22 '17 01:08 zelliott

@iamdubx I see the same behavior in http://www.jacklmoore.com/autosize/

are you using Chrome?

tthallos avatar Aug 30 '17 02:08 tthallos