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
This commit is contained in:
Ankush Menat 2022-07-12 18:19:39 +05:30 committed by GitHub
parent 4671460b65
commit 9530c90c09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()
})