diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-04-28 11:27:16 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-04-28 11:27:16 -0400 |
commit | 045f17e126f6eb74b62dca54c31074f5890b7871 (patch) | |
tree | c83a8317a3684669f144ed6c91be7b345c67446a /src | |
parent | 65458838ce4c903946a669b1ead5e576d0bc4009 (diff) |
warning fix
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/formattedText/DashFieldView.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/formattedText/DashFieldView.tsx b/src/client/views/nodes/formattedText/DashFieldView.tsx index 82c3185e7..422710c3e 100644 --- a/src/client/views/nodes/formattedText/DashFieldView.tsx +++ b/src/client/views/nodes/formattedText/DashFieldView.tsx @@ -102,13 +102,13 @@ export class DashFieldViewInternal extends React.Component<IDashFieldViewInterna // bcz: this is unfortunate, but since this React component is nested within a non-React text box (prosemirror), we can't // use React events. Essentially, React events occur after native events have been processed, so corresponding React events // will never fire because Prosemirror has handled the native events. So we add listeners for native events here. - return <span contentEditable={true} ref={r => { + return <span contentEditable={true} suppressContentEditableWarning={true} defaultValue={strVal} ref={r => { r?.addEventListener("keydown", e => this.fieldSpanKeyDown(e, r)); r?.addEventListener("blur", e => r && this.updateText(r.textContent!, false)); r?.addEventListener("pointerdown", action((e) => this._showEnumerables = true)); - }}> + }} > {strVal} - </span>; + </span> } } } |