Skip to content

Commit

Permalink
[SDK-1756] Remove HTML5 novalidate attribute from Lock form (#1890)
Browse files Browse the repository at this point in the history
* [SDK-1756] Remove HTML5 novalidate attribute from Lock form

* Update snapshot

Co-authored-by: Luciano Balmaceda <balmacedaluciano@gmail.com>
  • Loading branch information
Steve Hobbs and lbalmaceda committed Jun 30, 2020
1 parent 4e6fed2 commit 3af220c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/__tests__/ui/box/__snapshots__/container.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exports[`Container when suppressSubmitOverlay is true it does not display the ov
<form
className="auth0-lock-widget"
method="post"
noValidate={true}
onSubmit={[Function]}
>
<div
Expand Down
7 changes: 6 additions & 1 deletion src/ui/box/container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,12 @@ export default class Container extends React.Component {
<div className={className} lang={this.props.language}>
{overlay}
<div className="auth0-lock-center">
<form className="auth0-lock-widget" method="post" onSubmit={::this.handleSubmit}>
<form
className="auth0-lock-widget"
method="post"
noValidate
onSubmit={::this.handleSubmit}
>
{avatar && <Avatar imageUrl={avatar} />}
{closeHandler && <CloseButton onClick={::this.handleClose} />}
<div className="auth0-lock-widget-container">
Expand Down

0 comments on commit 3af220c

Please sign in to comment.