Skip to content

Commit 83b3a20

Browse files
committed
Fix block selector not closing after pasting block
Fixes getkirby#7087 Add a `close` method to the `BlockSelector` component to fix the issue of the block selector not closing after pasting a block. * Add a `close` method in the `methods` section of `panel/src/components/Forms/Blocks/BlockSelector.vue`. * Call the `close` method after pasting a block to close the block selector. * Emit a `cancel` event in the `close` method to handle the closing of the block selector. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/getkirby/kirby/issues/7087?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent 938fe98 commit 83b3a20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

panel/src/components/Forms/Blocks/BlockSelector.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ export default {
122122
paste(e) {
123123
this.$emit("paste", e);
124124
this.close();
125+
this.close();
126+
},
127+
close() {
128+
this.$emit("cancel");
125129
}
126130
}
127131
};

0 commit comments

Comments
 (0)