You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Casey Link <ca...@outskirtslabs.com> on 2016/05/10 19:24:28 UTC
Double event submission on eventlink w/ async="true" and confirm
mixin
G'day!
When using an eventlink like so:
<t:eventlink event="deleteComment" t:mixins="confirm"
async="true" context="comment.id"
class="btn
btn-danger btn-xs"
message="${message:confirm.delete.comment}">
${message:delete}
</t:eventlink>
The browser sends two xhr requests for the deleteComment event.
Removing the async and adding a zone parameter, like below, fixes this:
<t:eventlink event="deleteComment" t:mixins="confirm"
zone="^"
context="keyword.id"
class="btn
btn-danger btn-xs"
message="${message:confirm.delete.comment}">
${message:delete}
</t:eventlink>
Likewise, if I remove the confirm mixin and leave the async="true", then
it only sends one xhr event as expected (but without the confirm modal
of course).
Is this expected? Why is this happening?
--
Casey Link
Outskirts Labs { https://outskirtslabs.com }
Technology for Changemakers
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org