Skip to content

Commit

Permalink
[FIX] website_event_filter_city: Country filter support
Browse files Browse the repository at this point in the history
When the country filter is inactive, the node used is a span but when
the country filter is activated with the editor, the node is replaced
by a div and this causes an error. To avoid this, the node is replaced
by something generic ‘*’ and so it will be located by its identifying
class regardless of whether the element is a span or a div.
  • Loading branch information
pilarvargas-tecnativa committed Dec 13, 2024
1 parent 030f8b6 commit 2c3bb40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website_event_filter_city/templates/event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</div>
</div>
</xpath>
<xpath expr="//span[hasclass('o_wevent_offcanvas_country')]" position="after">
<xpath expr="//*[hasclass('o_wevent_offcanvas_country')]/.." position="after">
<div class="accordion-item">
<h2 class="accordion-header">
<button
Expand Down

0 comments on commit 2c3bb40

Please sign in to comment.