Fixed the dropdown bug in UserInputSidebar

This commit is contained in:
monilprajapati
2024-06-11 17:11:55 +05:30
parent df8493ae69
commit bcda8c6143
+2
View File
@@ -14944,6 +14944,7 @@ const AngularWorkflow = (defaultprops) => {
onChange={(event, newValue) => { onChange={(event, newValue) => {
console.log("Changed autocomplete!") console.log("Changed autocomplete!")
handleWorkflowSelectionUpdate({ target: { value: newValue } }, true) handleWorkflowSelectionUpdate({ target: { value: newValue } }, true)
event.target.blur();
}} }}
renderOption={(props, data, state) => { renderOption={(props, data, state) => {
if (data.id === workflow.id) { if (data.id === workflow.id) {
@@ -14972,6 +14973,7 @@ const AngularWorkflow = (defaultprops) => {
value: data, value: data,
}}, }},
true) true)
document.activeElement.blur();
}} }}
> >
<PolylineIcon style={{ marginRight: 8 }} /> <PolylineIcon style={{ marginRight: 8 }} />