[FIX] web: properties, close popover with 1 click instead of 2

Purpose
=======
When the focus is inside the label of the property, if we click
outside of the popover we need to click a second time to close the
popover.

Before that code was used to solve a bug where the definition popover
was closed when you select the text inside the property label. It
seems not necessary anymore, and it causes the issue above.

Task-3188915

Part-of: odoo/odoo#119811
This commit is contained in:
std-odoo
2023-05-03 10:11:54 +02:00
parent c706ae6e4f
commit abf487fcd7
@@ -143,11 +143,6 @@ export class PropertiesField extends Component {
* @returns {boolean}
*/
checkPopoverClose(target) {
if (document.activeElement.closest(".o_field_property_definition")) {
// the focus is still on an element of the definition
return false;
}
if (target.closest(".bootstrap-datetimepicker-widget")) {
// selected a datetime, do not close the definition popover
return false;