Skip to content

Commit

Permalink
Fix mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Nov 25, 2015
2 parents 10f998e + ce6fcc5 commit 1666e97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ React component for a div with editable contents
```

## Structure of this repository
* `lib/` compiled javascript, usable directly in the browser
* `src/` source javascript. Uses JSX and ES6.
* [`lib/`](https://github.com/lovasoa/react-contenteditable/tree/master/lib) compiled javascript, usable directly in the browser
* [`src/`](https://github.com/lovasoa/react-contenteditable/tree/master/src) source javascript. Uses JSX and ES6.

2 changes: 1 addition & 1 deletion src/react-contenteditable.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class ContentEditable extends React.Component {
dangerouslySetInnerHTML={{__html: this.props.html}}></div>;
}

shouldComponentUpdate = (nextProps) {
shouldComponentUpdate(nextProps) {
return nextProps.html !== React.findDOMNode(this).innerHTML;
}

Expand Down

0 comments on commit 1666e97

Please sign in to comment.