Skip to content

Commit e70e9ca

Browse files
committed
Change innerText to textContent
1 parent 58789f9 commit e70e9ca

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Dispatcher.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ export default class Dispatcher extends Component {
3838
}
3939

4040
launchAction() {
41-
this.context.store.dispatch(JSON.parse(this.refs.action.innerText.replace(/\s+/g, ' ')));
41+
this.context.store.dispatch(JSON.parse(this.refs.action.textContent.replace(/\s+/g, ' ')));
4242
}
4343

4444
componentDidMount() {
45-
this.refs.action.innerText = this.props.initEmpty ? '\n' : `{
46-
"type": ""
47-
}`;
45+
this.refs.action.innerHTML = this.props.initEmpty ? '<br/>' : '{<br/>"type": ""<br/>}';
4846
}
4947

5048
render() {

0 commit comments

Comments
 (0)