Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

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

Closed
wants to merge 1 commit into from

Conversation

benosman
Copy link

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 benosman force-pushed the master branch 2 times, most recently from f4a6b45 to 07b5eff Compare April 12, 2018 18:44
@benosman benosman closed this by deleting the head repository Feb 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant