-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #537 from auth0/email-input-fix
Fix email input in IE 10
- Loading branch information
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,14 @@ export default class EmailInput extends React.Component { | |
this.state = {}; | ||
} | ||
|
||
shouldComponentUpdate(nextProps) { | ||
const { invalidHint, isValid, value, onChange } = this.props; | ||
|
||
return invalidHint != nextProps.invalidHint | ||
|| isValid != nextProps.isValid | ||
|| value != nextProps.value; | ||
} | ||
|
||
render() { | ||
const { invalidHint, isValid, onChange, ...props } = this.props; | ||
const { focused } = this.state; | ||
|
@@ -29,7 +37,7 @@ export default class EmailInput extends React.Component { | |
placeholder="[email protected]" | ||
autoComplete="off" | ||
autoCapitalize="off" | ||
onInput={::this.handleOnChange} | ||
onChange={::this.handleOnChange} | ||
onFocus={::this.handleFocus} | ||
onBlur={::this.handleBlur} | ||
{...props}/> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters