New issue
Advanced search Search tips

Issue 824935 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: 2018-04-12
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Submit not working after it has been preventDefaulted once

Reported by fernando...@gmail.com, Mar 22 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Steps to reproduce the problem:
1. preventDefault the submission of a form.
2. Assign a flag variable so next time the form submits, it doesn't get preventDefaulted.
3. Submit the form once again.

What is the expected behavior?
The form to get submitted the second time.

What went wrong?
The form doesn't get submitted the second time.

Did this work before? Yes 

Chrome version: 65.0.3325.181  Channel: stable
OS Version: 10.0
Flash Version: 

Thanks.
 

Comment 1 by fcojp...@gmail.com, Mar 22 2018

Find the same behaviour today, please help us
Labels: Needs-Bisect Needs-Triage-M65

Comment 3 by tkent@chromium.org, Mar 23 2018

Components: -Blink Blink>Forms>Submission
Labels: Needs-Feedback
Not reproducible with the following code.  Would you provide a reproducible HTML/JavaScript code please?

---------------------------------------------
<form method="post" action="http://httpbin.org/post">
<input type=submit>
<label><input type=checkbox checked> preventDefault</label>
</form>

<script>
document.querySelector('form').addEventListener('submit', (event) => {
  if (document.querySelector('input[type=checkbox]').checked) {
    event.preventDefault();
    log('Prevented');
  }
});

function log(str) {
  document.querySelector('pre').textContent += str + '\n';
}
</script>
<pre></pre>
---------------------------------------------

Comment 4 by tkent@chromium.org, Mar 26 2018

NextAction: 2018-04-06
Well, I should have included more info:

I'm using jsPDF and after I save a document, that's when I can't submit the form. Not sure if it's a bug but I'm sure it didn't happen before.
Project Member

Comment 6 by sheriffbot@chromium.org, Mar 26 2018

Cc: tkent@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Triaged-ET Needs-Feedback
fernando88osuna@ Thanks for the feedback.

As per comment #3, request you to provide a sample File/URL where this issue can be reproduced, which will help in further triaging of the issue.

Thanks..

Comment 8 by tkent@chromium.org, Mar 29 2018

Labels: -Needs-Triage-M65
NextAction: 2018-04-12
Reporter, we still need complete steps to reproduce the issue.


Comment 9 Deleted

Project Member

Comment 10 by sheriffbot@chromium.org, Apr 5 2018

Cc: susan.boorgula@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Needs-Bisect Needs-Triage-M65 Needs-Feedback
As per comment #8, we still need the repro steps to reproduce the issue.
Hence adding 'Needs-Feedback' label and removing the 'Needs-Bisect' label as exact steps are not available to reproduce the issue.

Please feel free to add the 'Needs-Bisect' label once the complete steps are provided.

Thanks..
The NextAction date has arrived: 2018-04-12

Comment 13 by tkent@chromium.org, Apr 13 2018

Status: Archived (was: Unconfirmed)
We don't have enough information to investigate this.  Closing.

Sign in to add a comment