Skip to content

Commit

Permalink
Bump to 8.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerpena committed Apr 19, 2020
1 parent cdd9952 commit f277d46
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion demo/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,14 @@ export class App extends React.Component<{}, AppState> {
suggestionsDropdown: "bbbb"
}}
/>
value: <input type="text" value={this.state.value} onChange={(e) => {this.handleValueChange(e.target.value) }}/>
value:{" "}
<input
type="text"
value={this.state.value}
onChange={e => {
this.handleValueChange(e.target.value);
}}
/>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/bundle-prod.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-mde",
"version": "8.2.0",
"version": "8.3.0",
"description": "React Markdown Editor",
"main": "./lib/js/index.js",
"types": "./lib/definitions/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/commandOrchestrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class TextAreaTextApi implements TextApi {
this.textArea.selectionEnd = selection.end;
return getStateFromTextArea(this.textArea);
}

getState(): TextState {
return getStateFromTextArea(this.textArea);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class Preview extends React.Component<
}

componentWillReceiveProps(nextProps): void {
if(nextProps.markdown !== this.props.markdown) {
if (nextProps.markdown !== this.props.markdown) {
nextProps.generateMarkdownPreview(nextProps.markdown).then(preview => {
this.setState({
preview,
Expand Down

0 comments on commit f277d46

Please sign in to comment.