odoo/odoo#164903

Created by fw-bot
Merged at 82f95242b29c442b0d116f90dfd91e21a05af980

Statuses:

label
odoo-dev:master-16.0-close-inline-text-option-dropdown-on-outside-click-divy-9hzv-fw
head
89ce1d0d236ebb20f86b7a618ccab7e8b3276567
merged
1 year ago by Website, Colin Louis (loco)
odoo/odoo
16.0 #162376
saas-16.3 #164636
saas-16.4 #164642
17.0 #164646
saas-17.1 #164765
saas-17.2 #164786
saas-17.4
18.0
saas-18.1
saas-18.2
saas-18.3
master #164903

[FW][FIX] website: close dropdown of options on clicked outside

Step to reproduce:

  1. Drop a multiple text snippet
  2. Select the text and open the dropdown of any options
  3. Click any other text or anywhere outsite the snippet editor
  4. Dropdown remains open.

Dropdown should be close if we click outside.

Before this commit, when clicking anywhere outside the snippet editor panel, the opened dropdowns for inline text options would remain open.

This issue arose due to the presence of multiple HTML document objects. The Bootstrap dropdown was not being triggered outside the iframe. Therefore, in this commit, we handled the closing of the dropdown manually if clicked outside option panel.

task-3544708

Forward-Port-Of: #164786
Forward-Port-Of: #162376