Skip to content

Commit

Permalink
test cases passing for form with onSubmit
Browse files Browse the repository at this point in the history
  • Loading branch information
V2dha committed Jul 8, 2022
1 parent 0c19f02 commit 2b227ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions __tests__/src/rules/no-noninteractive-element-interactions-test.js
Expand Up @@ -110,6 +110,16 @@ const alwaysValid = [
{ code: '<embed onClick={() => {}} />;' },
{ code: '<font onClick={() => {}} />;' },
{ code: '<font onSubmit={() => {}} />;' },
{ code: '<form onSubmit={() => {}} />;' },
{
code: `
<form onSubmit={this.handleSubmit.bind(this)} method="POST">
<button type="submit">
Save
</button>
</form>
`,
},
{ code: '<frameset onClick={() => {}} />;' },
{ code: '<head onClick={() => {}} />;' },
{ code: '<header onClick={() => {}} />;' },
Expand Down

0 comments on commit 2b227ed

Please sign in to comment.