forked from MarseyWorld/MarseyWorld
scroll when uploading pic
parent
8cbc18f99a
commit
d8f7d133d7
|
@ -403,6 +403,7 @@ function handle_files() {
|
|||
document.getElementById('image-preview').setAttribute('src', this.result);
|
||||
document.getElementById('image-preview').classList.remove('d-none');
|
||||
document.getElementById('image-preview').classList.add('mr-2');
|
||||
box.scrollTo(0, box.scrollHeight)
|
||||
};
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue