forked from AkkomaGang/akkoma-fe
fix hidden input for file upload causing unintended scrolls
This commit is contained in:
parent
4d720974c3
commit
4a956fa18d
1 changed files with 8 additions and 1 deletions
|
@ -17,9 +17,9 @@
|
||||||
/>
|
/>
|
||||||
<input
|
<input
|
||||||
v-if="uploadReady"
|
v-if="uploadReady"
|
||||||
|
class="hidden-input-file"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
type="file"
|
type="file"
|
||||||
style="position: fixed; top: -100em; max-width: 0; max-height: 0"
|
|
||||||
multiple="true"
|
multiple="true"
|
||||||
@change="change"
|
@change="change"
|
||||||
>
|
>
|
||||||
|
@ -33,5 +33,12 @@
|
||||||
|
|
||||||
.media-upload {
|
.media-upload {
|
||||||
cursor: pointer; // We use <label> for interactivity... i wonder if it's fine
|
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>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue