You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2021/04/08 18:22:20 UTC

[tapestry-5] 01/02: TAP5-2671: dom(...).trigger("submit") doesn't work on Chrome

This is an automated email from the ASF dual-hosted git repository.

thiagohp pushed a commit to branch 5.6.x
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git

commit 52f7696e36b7a1c8f53dba2bd023646bde5bb6fc
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Thu Apr 8 15:05:15 2021 -0300

    TAP5-2671: dom(...).trigger("submit") doesn't work on Chrome
    
    for AJAX form submissions.
---
 .../preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee b/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
index 79c22b0..bf24548 100644
--- a/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
+++ b/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
@@ -559,7 +559,7 @@ define ["underscore", "./utils", "./events", "jquery"],
       unless Prototype.Browser.WebKit and eventName == 'submit' and @element instanceof HTMLFormElement
         fireNativeEvent @element, eventName
       else
-        @element.submit()
+        @element.requestSubmit()
               
 #endif