fix: disable file item click during upload

This commit is contained in:
Timothy J. Baek 2024-10-17 18:15:59 -07:00
parent dff9254e34
commit 42d048741c

View File

@ -23,9 +23,17 @@
loading={file.status === 'uploading'}
dismissible
on:click={() => {
if (file.status === 'uploading') {
return;
}
dispatch('click', file.id);
}}
on:dismiss={() => {
if (file.status === 'uploading') {
return;
}
dispatch('delete', file.id);
}}
/>