From 9f512620397748b8d588f950808a53bec60768a9 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 2 Mar 2021 11:14:56 +0100 Subject: [PATCH] Add a container property to popup components Added container property for Modal, AppSettingsDialog, EmojiPicker and the menu of the Avatar component. Signed-off-by: Vincent Petry --- .../AppSettingsDialog/AppSettingsDialog.vue | 11 +++++++++++ src/components/Avatar/Avatar.vue | 9 +++++++++ src/components/EmojiPicker/EmojiPicker.vue | 9 +++++++++ src/components/Modal/Modal.vue | 18 ++++++++++++++++-- 4 files changed, 45 insertions(+), 2 deletions(-) diff --git a/src/components/AppSettingsDialog/AppSettingsDialog.vue b/src/components/AppSettingsDialog/AppSettingsDialog.vue index 22ed4976a1..84e633f9c5 100644 --- a/src/components/AppSettingsDialog/AppSettingsDialog.vue +++ b/src/components/AppSettingsDialog/AppSettingsDialog.vue @@ -81,6 +81,14 @@ export default { type: Boolean, default: false, }, + + /** + * Selector for the popover container + */ + container: { + type: String, + default: 'body', + }, }, data() { @@ -244,6 +252,9 @@ export default { // Return value of the render function if (this.open) { return createElement('Modal', { + attrs: { + container: this.container, + }, on: { close: () => { this.handleCloseModal() }, }, diff --git a/src/components/Avatar/Avatar.vue b/src/components/Avatar/Avatar.vue index 90478a8461..bff4f3db1f 100644 --- a/src/components/Avatar/Avatar.vue +++ b/src/components/Avatar/Avatar.vue @@ -54,6 +54,7 @@