Skip to content

Commit fafdf8d

Browse files
author
Julien Veyssier
committed
hide image link input when closing image action popup
Signed-off-by: Julien Veyssier <[email protected]>
1 parent a87bc0d commit fafdf8d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/MenuBar.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
<Actions v-else-if="icon.class === 'icon-image'"
4545
:key="icon.label"
4646
ref="imageActions"
47-
:default-icon="'icon-image'">
47+
:default-icon="'icon-image'"
48+
@close="onImageActionClose">
4849
<button slot="icon"
4950
:class="{ 'icon-image': true, 'loading-small': uploadingImage }"
5051
:title="icon.label"
@@ -337,6 +338,9 @@ export default {
337338
const lastValue = Object.prototype.hasOwnProperty.call(this.submenuVisibility, icon.label) ? this.submenuVisibility[icon.label] : false
338339
this.$set(this.submenuVisibility, icon.label, !lastValue)
339340
},
341+
onImageActionClose() {
342+
this.showImageLinkPrompt = false
343+
},
340344
onUploadImage(command) {
341345
this.imageCommand = command
342346
this.$refs.imageFileInput.click()

0 commit comments

Comments
 (0)