mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-03-19 17:01:55 +08:00
Fix file field in dialogs not clearing properly
This commit is contained in:
parent
9c51bb6fe6
commit
4050753ff6
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user