Closed hdsuperman closed 1 year ago
"prosemirror-view": "^1.30.1", "react": "18.2.0", "typescript": "4.9.3"
dispatchTransaction(tr) { const newState = this.state.apply(tr); this.updateState(newState); // TS2339: Property 'updateState' does not exist on type 'DirectEditorProps'. if (tr.docChanged) { onChangeRef.current(serializer(newState.doc)); } },
Looks like you're expecting this to point at a different thing from what it actually points at. That's not an issue in the library though.
this
Version
"prosemirror-view": "^1.30.1", "react": "18.2.0", "typescript": "4.9.3"