diff --git a/src/ui/components/inputField/InputDropdown.tsx b/src/ui/components/inputField/InputDropdown.tsx index 05a9ba6..c2b7d01 100644 --- a/src/ui/components/inputField/InputDropdown.tsx +++ b/src/ui/components/inputField/InputDropdown.tsx @@ -12,7 +12,7 @@ * License for the specific language governing permissions and limitations * under the License. */ -import React, { useCallback, useState } from "react"; +import React, { useCallback, useRef, useState } from "react"; import { getImageUrl } from "../../../utils"; import TooltipContainer from "../tooltip/tooltip"; @@ -48,6 +48,8 @@ const InputDropdown: React.FC = (props) => { const [isFocused, setIsFocused] = useState(false); const [isTouched, setIsTouched] = useState(false); + const inputRef = useRef(null); + const onChange = useCallback( ( event: @@ -64,7 +66,13 @@ const InputDropdown: React.FC = (props) => { const showError = props.error && (isTouched || props.forceShowError); return ( -
+
{ + setTimeout(() => { + setIsFocused(false); + }, 100); + }}> {props.label && (
)} - -
+ + )} {showError && errorPlacement === "bottom" && (