vue-core-image-upload icon indicating copy to clipboard operation
vue-core-image-upload copied to clipboard

Custom element (button) how to disable upload input?

Open erik-viking opened this issue 6 years ago • 1 comments

Using the following HTML:

<vue-core-image-upload
            :max-file-size="10000"
            :is-xhr="false"
            :max-height="500"
            :max-width="500"
            crop="local"
            resize="local"
            v-on="$listeners"
            @errorhandle="imageError"
            @imagechanged="imageChanged"
        >
            <p-button
                :disabled="isImageUploading"
                :loading="isImageUploading"
            >
                UPDATE
            </p-button>
        </vue-core-image-upload>

How can I disable the input element from being clicked when using custom upload method? The <p-button> element gets disabled properly, but the user can still click it to upload a different image.

erik-viking avatar Nov 20 '18 05:11 erik-viking

Adding :disabled="isImageUploading" on vue-core-image-upload component

limdblur avatar Dec 16 '18 16:12 limdblur