[FIX] calendar: fix dynamic repositioning

The reposition() method got a new parameter in #116499.
Many2ManyExpandable now passes the necessary argument to reposition().

closes odoo/odoo#118459

Signed-off-by: Arnaud Joset <arj@odoo.com>
This commit is contained in:
Viktors Lipskis (vili)
2023-04-13 17:57:29 +02:00
parent 61cdeed774
commit 1364c48548
@@ -20,7 +20,7 @@ export class Many2ManyAttendeeExpandable extends Many2ManyAttendee {
const popover = document.querySelector(".o_field_many2manyattendeeexpandable")
.closest(".o_popover");
const targetElement = document.querySelector(`.fc-event[data-event-id="${this.props.record.resId}"]`);
reposition(targetElement, popover, { position: "right", margin: 0 });
reposition(targetElement, popover, null, { position: "right", margin: 0 });
}, () => [ this.state.expanded ]);
}