Skip to content

Commit 4862a2d

Browse files
committed
Release 1.1.2
1 parent fcf6aea commit 4862a2d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@jswork/react-codeflask",
33
"homepage": "https://js.work",
4-
"version": "1.1.0",
4+
"version": "1.1.2",
55
"description": "A micro code-editor for awesome web pages.",
66
"license": "MIT",
77
"main": "dist/index.js",

src/components/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default class ReactCodeflask extends Component<ReactCodeflaskProps> {
115115
};
116116

117117
private root: HTMLSpanElement | null = null;
118-
private jar: CodeFlask = null;
118+
private jar:any = null;
119119

120120
state = { minHeight: 40, loading: false };
121121

@@ -156,7 +156,7 @@ export default class ReactCodeflask extends Component<ReactCodeflaskProps> {
156156
componentDidMount() {
157157
const { value, readOnly, language, options } = this.props;
158158
const opts = { language, readonly: readOnly, ...options };
159-
const editorElem = this.root;
159+
const editorElem = this.root as Element;
160160
this.setState({ loading: true });
161161
this.jar = new CodeFlask(editorElem, opts);
162162
this.addLangs();

0 commit comments

Comments
 (0)