[FIX] playground: fix wms sample

It was crashing when we close a window, because there are two event
handlers for the click event on Window.  But when we close a window, we
actually do not want to update the z index.
This commit is contained in:
Géry Debongnie
2019-11-22 12:07:16 +01:00
committed by aab-odoo
parent 48744cfa87
commit 7bb04185c7
+1 -1
View File
@@ -1552,7 +1552,7 @@ const WMS_XML = `<templates>
<div t-name="Window" class="window" t-att-style="style" t-on-click="updateZIndex"> <div t-name="Window" class="window" t-att-style="style" t-on-click="updateZIndex">
<div class="header"> <div class="header">
<span t-on-mousedown="startDragAndDrop"><t t-esc="props.info.title"/></span> <span t-on-mousedown="startDragAndDrop"><t t-esc="props.info.title"/></span>
<span class="close" t-on-click="close">×</span> <span class="close" t-on-click.stop="close">×</span>
</div> </div>
<t t-slot="default"/> <t t-slot="default"/>
</div> </div>