We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd0937b commit cbb1cf6Copy full SHA for cbb1cf6
panel/src/components/Forms/Input/TextareaInput.vue
@@ -337,7 +337,7 @@ export default {
337
return this.$nextTick();
338
},
339
async toggle(before, after) {
340
- after = after ?? before;
+ after ??= before;
341
const selection = this.selection();
342
343
if (selection.startsWith(before) && selection.endsWith(after)) {
@@ -354,7 +354,8 @@ export default {
354
this.$panel.upload.pick(this.uploadOptions);
355
356
async wrap(before, after) {
357
- return this.insert(before + this.selection() + (after ?? before));
358
+ await this.insert(before + this.selection() + after);
359
}
360
361
};
0 commit comments