From 9530c90c09ae8d70160f13eab03dfd0890727b78 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Tue, 12 Jul 2022 18:19:39 +0530 Subject: [PATCH] fix(quill): don't go beyond container for bubble (#17475) Container uses bubble type quill editor, options for which seem to spill out and hide behind the commend container. This fixes the UI glitch. ref: https://quilljs.com/docs/configuration/#bounds --- frappe/public/js/frappe/form/controls/comment.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/public/js/frappe/form/controls/comment.js b/frappe/public/js/frappe/form/controls/comment.js index b9b2d6a987..4e1c7f97a4 100644 --- a/frappe/public/js/frappe/form/controls/comment.js +++ b/frappe/public/js/frappe/form/controls/comment.js @@ -71,6 +71,7 @@ frappe.ui.form.ControlComment = class ControlComment extends frappe.ui.form.Cont const options = super.get_quill_options(); return Object.assign(options, { theme: 'bubble', + bounds: this.quill_container[0], modules: Object.assign(options.modules, { mention: this.get_mention_options() })