From 045f17e126f6eb74b62dca54c31074f5890b7871 Mon Sep 17 00:00:00 2001
From: Bob Zeleznik <zzzman@gmail.com>
Date: Tue, 28 Apr 2020 11:27:16 -0400
Subject: warning fix

---
 src/client/views/nodes/formattedText/DashFieldView.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/client/views/nodes/formattedText/DashFieldView.tsx')

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>
             }
         }
     }
-- 
cgit v1.2.3-70-g09d2

