Skip to content

Commit e556afc

Browse files
Merge pull request #37 from Capchase/revert-36-santi/out-711-website-send-form-submitted-only-on-success
Revert "chore: only send form event on success"
2 parents 84a1e3a + a5c6160 commit e556afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

segment-tracker/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ $(document).ready(function () {
138138

139139

140140
// Add submit listener for all forms
141-
$("form").bind('ajax:complete', function () {
141+
$("form").on("submit", function () {
142142

143143
var properties = {
144144
// capture the URL where this event is fired

0 commit comments

Comments
 (0)