From 8832c048af0338d94526b43a081cbc0dfcb512c6 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Fri, 12 Jan 2024 13:18:59 +0200 Subject: [PATCH] remove focus --- .../MultipleDropDownService/components/DropDownComponent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wax-questions-service/src/MultipleDropDownService/components/DropDownComponent.js b/wax-questions-service/src/MultipleDropDownService/components/DropDownComponent.js index 56cc6b437..5435583a4 100644 --- a/wax-questions-service/src/MultipleDropDownService/components/DropDownComponent.js +++ b/wax-questions-service/src/MultipleDropDownService/components/DropDownComponent.js @@ -125,7 +125,7 @@ export default ({ setPosition, position }) => { }, [position.left]); useEffect(() => { - if (addOptionRef.current) addOptionRef.current.focus(); + // if (addOptionRef.current) addOptionRef.current.focus(); if (!activeView.state.selection.node) return; const { tr } = activeView.state; @@ -163,7 +163,7 @@ export default ({ setPosition, position }) => { const obj = { label: addOptionRef.current.value, value: uuidv4() }; setOptions(prevOptions => [...prevOptions, obj]); setOptionText(''); - addOptionRef.current.focus(); + // addOptionRef.current.focus(); }; const removeOption = id => { -- GitLab