You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Raigo Aljand (Jira)" <ji...@apache.org> on 2020/02/10 12:56:00 UTC

[jira] [Commented] (TAP5-2602) 5.4 LinkSubmit does not work with Prototype JS

    [ https://issues.apache.org/jira/browse/TAP5-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17033579#comment-17033579 ] 

Raigo Aljand commented on TAP5-2602:
------------------------------------

I can confirm this bug, but only in Chrome and Chromium. It works as expected in Firefox. After superifical testing, it seems Chrome doesn't support dispatchEvent('submit') to actually submit the form. form.submit() works though.

> 5.4 LinkSubmit does not work with Prototype JS
> ----------------------------------------------
>
>                 Key: TAP5-2602
>                 URL: https://issues.apache.org/jira/browse/TAP5-2602
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4.3
>            Reporter: Beat Durrer
>            Priority: Critical
>              Labels: client-javascript, form, prototype
>
> The LinkSubmit component does not submit the form, when (the default) Prototype library is used. It works fine with jQuery.
> The "submit" event and then "prepareForSubmit" are emitted, but then I lost track of the event chain.
> Minimal example:
> <t:form t:id="names">
>     <t:label for="firstName"/>
>     <t:textfield t:id="firstName"/>
>     <t:linksubmit>Submit</t:linksubmit>
> </t:form>
> Workaround: Switch to jQuery.
> Tested on Tapestry 5.4.3 and 5.4.2 / Oracle JDK 1.8.0_181
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)