Before this commit, in some instances when editing text in a popup, the popup would close. The issue was introduced by this commit [1]. A 'd-none' class is since added on the 's_popup' section when the modal closes but when the widget starts with the modal already open (e.g. during a widget refresh), the 'd-none' class is not removed from the section. Steps to reproduce: - Edit a page. - Drop a popup. - Select a word or a sentence and delete it or press "Enter" to create a new paragraph. - Bug => the popup closes. [1]: https://github.com/odoo/odoo/commit/cfd53b8fae3ad9f677df49a03fe6d2945dbb5da2 task-3102275 closes odoo/odoo#113746 X-original-commit: fb2495d3b87223be65f98583056a070439a7df7e Signed-off-by: Vray Benjamin (bvr) <bvr@odoo.com> Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>