From 0f54ef61653213bd1b26300cb7d14e3da71d1eea Mon Sep 17 00:00:00 2001 From: anika-ahluwalia Date: Fri, 15 May 2020 13:25:30 -0500 Subject: fixing bugs in drag and drop of params --- src/client/views/nodes/ScriptingBox.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/client/views/nodes/ScriptingBox.tsx') diff --git a/src/client/views/nodes/ScriptingBox.tsx b/src/client/views/nodes/ScriptingBox.tsx index 8e8340042..467dd064c 100644 --- a/src/client/views/nodes/ScriptingBox.tsx +++ b/src/client/views/nodes/ScriptingBox.tsx @@ -127,7 +127,10 @@ export class ScriptingBox extends ViewBoxAnnotatableComponent; const listParams = this.compileParams.map((parameter, i) => -
+
this._overlayDisposer?.()} + onKeyPress={e => { + if (e.key === "Enter") { + this._overlayDisposer?.(); + } + } + } + style={{ background: this._dropped ? "yellow" : "" }}> : null}
-
{params}
+
{params}
{this._errorMessage}
{this.rootDoc.layout === "layout" ?
: (null)} -- cgit v1.2.3-70-g09d2