Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom element (button) how to disable upload input? #223

Open
erik-viking opened this issue Nov 20, 2018 · 1 comment
Open

Custom element (button) how to disable upload input? #223

erik-viking opened this issue Nov 20, 2018 · 1 comment

Comments

@erik-viking
Copy link

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.

@limdblur
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants