add file preview

Reviewed-on: sites/file-explorer#6
This commit is contained in:
2024-12-06 13:04:56 +00:00
parent a574c3a89a
commit 12730b8bcd
10 changed files with 94 additions and 19 deletions

View File

@ -2,7 +2,6 @@ import { Controller } from '@hotwired/stimulus';
export default class extends Controller {
connect() {
console.log(this.element);
this.element.querySelector('input').addEventListener('change', () => {
this.element.querySelector('button[type="submit"]').click();
});