[FIX] website.editor: remove javascript exception when the user close the modal after add a question in website_forum
This commit is contained in:
@@ -519,7 +519,7 @@ define(['summernote/summernote'], function () {
|
||||
var r = range.create();
|
||||
if ($(r ? dom.node(r.sc) : event.srcElement || event.target).closest('#website-top-navbar, #oe_main_menu_navbar, .note-popover, .note-toolbar, .modal').length) {
|
||||
if (!$(event.target).is('input, select, label, button, a')) {
|
||||
if (!remember_selection) {
|
||||
if (!remember_selection && $editable[0]) {
|
||||
remember_selection = range.create(dom.firstChild($editable[0]), 0);
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user