Skip to content

Commit

Permalink
Merge pull request #6 from bsurai/componentWillUnmount
Browse files Browse the repository at this point in the history
jquery component has to be unmounted
  • Loading branch information
Utzel-Butzel authored Jul 25, 2017
2 parents 463882d + 70804be commit b5ab1b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ export default class extends React.Component {
this.setState({ value: input });
this.props.onChange(input);
}
componentWillUnmount() {
jQuery(ReactDOM.findDOMNode(this.refs.keyboard)).remove();
}
render() {
var { options, value, validation, onChange, ...other } = this.props;
if (this.props.options.type == 'textarea') {
Expand Down

0 comments on commit b5ab1b5

Please sign in to comment.