Skip to content

Commit e67ce19

Browse files
fix: Remove unnecessary event emitters
1 parent 8cdc24a commit e67ce19

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

panel/src/components/Forms/Field/FilesField.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ export default {
6262
// the `$panel.content.update()` event sends
6363
// the updated form value object to the server
6464
await this.$panel.content.update();
65-
66-
this.$events.emit("file.upload");
67-
this.$events.emit("model.update");
6865
}
6966
}
7067
};

panel/src/components/Forms/Input/TextareaInput.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,6 @@ export default {
208208
// the `$panel.content.update()` event sends
209209
// the updated text value object to the server
210210
await this.$panel.content.update();
211-
212-
// refresh the view afterwards to show the new file
213-
// in other sections and update the textarea value
214-
// this.$panel.view.reload();
215-
this.$panel.events.emit("file.upload");
216-
this.$panel.events.emit("model.update");
217211
},
218212
onCommand(command, ...args) {
219213
if (typeof this[command] !== "function") {

0 commit comments

Comments
 (0)