[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user