Skip to content

Commit

Permalink
Use onInput work around for IE11 react input bug
Browse files Browse the repository at this point in the history
Temporary fix for issue here: facebook/react#7027
  • Loading branch information
jslatts committed Mar 13, 2017
1 parent 9e0bbc1 commit 7fb5a48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "carbondream",
"version": "0.3.1",
"version": "0.4.1",
"description": "React web annotation engine",
"homepage": "http://carbondream.zeroarc.com/",
"main": "dist/entry.js",
Expand Down
3 changes: 2 additions & 1 deletion src/Input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ export default class Input extends React.Component {

const cancelClasses = ClassNames('btn btn-xs cancel');

//HACK: Using onInput instead of onChange see: https://github.com/facebook/react/issues/7027
return (
<div style={divStyle} className={editorClasses}>
<div style={shadowStyle} className={shadowClasses}></div>
<div className={inputClasses}>
<textarea autoFocus
value={this.state.value}
onChange={this.handleChange}
onInput={this.handleChange}
onKeyDown={this.handleKeyDown}
onBlur={this.handleBlur}
/>
Expand Down

0 comments on commit 7fb5a48

Please sign in to comment.