Skip to content

Commit

Permalink
#226 onChange(event) fix
Browse files Browse the repository at this point in the history
  • Loading branch information
purecatamphetamine committed Jan 9, 2019
1 parent 503303f commit 423f2f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/PhoneInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,12 @@ export default class PhoneNumberInput extends PureComponent
}
= this.props

// If `_input` is an `event`
// then extract `event.target.value`.
if (_input && typeof _input.preventDefault === 'function') {
_input = _input.target.value
}

const
{
input,
Expand Down

0 comments on commit 423f2f5

Please sign in to comment.