Skip to content

Commit

Permalink
Fix Text Mode onChange
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Mar 29, 2017
1 parent 08a46f4 commit 9f3e225
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/editor/mode/text.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
function Text( { html, onChange } ) {
const changeValue = ( event ) => {
onChange( event.target.value );
};

return (
<div className="editor-mode-text">
<textarea value={ html } onChange={ onChange } />
<textarea value={ html } onChange={ changeValue } />
</div>
);
}
Expand Down

0 comments on commit 9f3e225

Please sign in to comment.