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

Only run autosize only if v-autosize attribute is truthy.

Open benosman opened this issue 7 years ago • 0 comments

I use this plugin inside a wrapper component, and I have a boolean prop that specifies whether autosize should be enabled/disabled.

I pass this prop through on the v-autosize attribute, however, if the value is false, the autosize functionality is still enabled as currently it only checks for the existence of the attribute not if it is 'truthy'

This commit changes this, so v-autosize="false" works as expected.

benosman avatar Apr 11 '18 17:04 benosman