Skip to content

Commit 1e6d038

Browse files
fix: Make wrap and toggle async
1 parent c6eece6 commit 1e6d038

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export default {
335335
end: this.$refs.input.selectionEnd
336336
};
337337
},
338-
toggle(before, after) {
338+
async toggle(before, after) {
339339
after = after ?? before;
340340
const selection = this.selection();
341341
@@ -352,8 +352,8 @@ export default {
352352
upload() {
353353
this.$panel.upload.pick(this.uploadOptions);
354354
},
355-
wrap(before, after) {
356-
this.insert(before + this.selection() + (after ?? before));
355+
async wrap(before, after) {
356+
return this.insert(before + this.selection() + (after ?? before));
357357
}
358358
}
359359
};

0 commit comments

Comments
 (0)