@uipath/apollo-react 3.56.0-pr364.4a7a5a0 → 3.56.0-pr364.5aa86fc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -193,6 +193,7 @@ const StageNodeComponent = (props)=>{
|
|
|
193
193
|
setIsStageTitleEditing(false);
|
|
194
194
|
if (onStageTitleChange) onStageTitleChange(label);
|
|
195
195
|
}
|
|
196
|
+
if ('Escape' !== e.key) e.stopPropagation();
|
|
196
197
|
}, [
|
|
197
198
|
onStageTitleChange,
|
|
198
199
|
label
|
|
@@ -237,10 +238,6 @@ const StageNodeComponent = (props)=>{
|
|
|
237
238
|
}, [
|
|
238
239
|
onStageClick
|
|
239
240
|
]);
|
|
240
|
-
const handleKeyDown = (0, external_react_namespaceObject.useCallback)((e)=>{
|
|
241
|
-
const target = e.target;
|
|
242
|
-
if ((target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target.isContentEditable) && 'Escape' !== e.key) e.stopPropagation();
|
|
243
|
-
}, []);
|
|
244
241
|
const handleTaskClick = (0, external_react_namespaceObject.useCallback)((e, taskElementId)=>{
|
|
245
242
|
e.stopPropagation();
|
|
246
243
|
onTaskClick?.(taskElementId);
|
|
@@ -408,7 +405,6 @@ const StageNodeComponent = (props)=>{
|
|
|
408
405
|
position: 'relative'
|
|
409
406
|
},
|
|
410
407
|
onClick: handleStageClick,
|
|
411
|
-
onKeyDown: handleKeyDown,
|
|
412
408
|
onMouseEnter: handleMouseEnter,
|
|
413
409
|
onMouseLeave: handleMouseLeave,
|
|
414
410
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.tsx"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"StageNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.tsx"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAipBxD,eAAO,MAAM,SAAS,8CAvoBa,cAAc,6CAuoBA,CAAC"}
|
|
@@ -165,6 +165,7 @@ const StageNodeComponent = (props)=>{
|
|
|
165
165
|
setIsStageTitleEditing(false);
|
|
166
166
|
if (onStageTitleChange) onStageTitleChange(label);
|
|
167
167
|
}
|
|
168
|
+
if ('Escape' !== e.key) e.stopPropagation();
|
|
168
169
|
}, [
|
|
169
170
|
onStageTitleChange,
|
|
170
171
|
label
|
|
@@ -209,10 +210,6 @@ const StageNodeComponent = (props)=>{
|
|
|
209
210
|
}, [
|
|
210
211
|
onStageClick
|
|
211
212
|
]);
|
|
212
|
-
const handleKeyDown = useCallback((e)=>{
|
|
213
|
-
const target = e.target;
|
|
214
|
-
if ((target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target.isContentEditable) && 'Escape' !== e.key) e.stopPropagation();
|
|
215
|
-
}, []);
|
|
216
213
|
const handleTaskClick = useCallback((e, taskElementId)=>{
|
|
217
214
|
e.stopPropagation();
|
|
218
215
|
onTaskClick?.(taskElementId);
|
|
@@ -380,7 +377,6 @@ const StageNodeComponent = (props)=>{
|
|
|
380
377
|
position: 'relative'
|
|
381
378
|
},
|
|
382
379
|
onClick: handleStageClick,
|
|
383
|
-
onKeyDown: handleKeyDown,
|
|
384
380
|
onMouseEnter: handleMouseEnter,
|
|
385
381
|
onMouseLeave: handleMouseLeave,
|
|
386
382
|
children: [
|