From 07dff7b6ed1049f694cdf494e67aea33e3f0b02c Mon Sep 17 00:00:00 2001 From: HOANGLAOTA Date: Thu, 20 Jun 2024 15:26:01 +0700 Subject: [PATCH] fix bug 2006 --- src/_components/Auth/InputText/index.js | 1 + src/_components/Modal/ModalSearch/ModalSearch.jsx | 8 ++++++++ src/_constants/register.js | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/_components/Auth/InputText/index.js b/src/_components/Auth/InputText/index.js index 296889b..3273a59 100644 --- a/src/_components/Auth/InputText/index.js +++ b/src/_components/Auth/InputText/index.js @@ -145,6 +145,7 @@ const InputText = (props) => { props.autoComplete ? props.autoComplete : "new-password" } autoFocus={props?.autoFocus ? props.autoFocus : false} + onKeyDown={props?.onKeyDown} /> {props.typeSearch == "search" && props.value ? (
{ renderLabelIcon={() => renderAuthIcon("search")} errorAbsolute={false} onFocus={() => setValueSearch(valueSearch?.trim())} + onKeyDown={(e) => { + if(e.key === "Enter") { + e.preventDefault(); + if(!!listDataOptionsSide?.length) { + handleSelectOption(listDataOptionsSide[0]) + } + } + }} >
diff --git a/src/_constants/register.js b/src/_constants/register.js index b90a053..1b24e80 100644 --- a/src/_constants/register.js +++ b/src/_constants/register.js @@ -5,7 +5,7 @@ export const registerValue = { district_alias: '', organization: 'Nam Định', represent_code: 'ND1', - logo: '/assets/images/logo_ND.png', + logo: '/assets/images/Logo_ND.png', name: 'Sở giáo dục và đào tạo Nam Định', color: '#007FBF' },