Content-Length: 216754 | pFad | http://github.com/Vanthink-UED/vue-core-image-upload/issues/223

A1 Custom element (button) how to disable upload input? · Issue #223 · Vanthink-UED/vue-core-image-upload · GitHub
Skip to content

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

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

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Vanthink-UED/vue-core-image-upload/issues/223

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy