[FIX] web: fix boolean properties value change when editing

Bug
===
- Create a boolean property
- Close the popover definition
- Re-open the definition
> The boolean value has been change because it received the click event.

Task-3172106

closes odoo/odoo#113448

X-original-commit: 677aac62b0efb4b16afd0348c3b3b2c9b4ef65b0
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: Stéphane Debauche (std) <std@odoo.com>
This commit is contained in:
std-odoo
2023-02-28 10:02:49 +01:00
parent bbb20584c2
commit e649b36a49
@@ -220,9 +220,9 @@ export class PropertiesField extends Component {
* @param {string} propertyName
*/
onPropertyEdit(event, propertyName) {
event.stopPropagation();
event.preventDefault();
if (event.target.classList.contains("disabled")) {
event.stopPropagation();
event.preventDefault();
// remove the glitch if we click on the edit button
// while the popover is already opened
return;