Skip to content
Snippets Groups Projects
Commit 4a956fa1 authored by HJ's avatar HJ :fire:
Browse files

fix hidden input for file upload causing unintended scrolls

parent 4d720974
No related branches found
No related tags found
No related merge requests found
......@@ -17,9 +17,9 @@
/>
<input
v-if="uploadReady"
class="hidden-input-file"
:disabled="disabled"
type="file"
style="position: fixed; top: -100em; max-width: 0; max-height: 0"
multiple="true"
@change="change"
>
......@@ -33,5 +33,12 @@
.media-upload {
cursor: pointer; // We use <label> for interactivity... i wonder if it's fine
.hidden-input-file {
max-width: 0;
max-height: 0;
pointer-events: none;
opacity: 0;
}
}
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment