Fix file field in dialogs not clearing properly

This commit is contained in:
JannisX11 2023-07-29 16:50:18 +02:00
parent 9c51bb6fe6
commit 4050753ff6

View File

@ -312,6 +312,8 @@ function buildForm(dialog) {
remove_button.on('click', e => {
e.stopPropagation();
data.value = '';
delete data.content;
delete data.file;
input.val('');
})
@ -611,6 +613,7 @@ window.Dialog = class Dialog {
data.bar.find('input').prop('checked', value);
break;
case 'file':
delete data.file;
if (isApp) {
data.value = value;
} else {