Skip to content

Commit

Permalink
fix: fix keyboaed visibility issue for non searchable singleselect
Browse files Browse the repository at this point in the history
affects: @medly-components/core, @medly-components/forms
  • Loading branch information
gmukul01 committed Nov 13, 2023
1 parent 322e406 commit cc471e6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/components/SingleSelect/SingleSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const Component: FC<SingleSelectProps> = memo(
{...commonProps}
minWidth={minWidth}
maxWidth={maxWidth}
readOnly={!inputProps.required && !isSearchable}
inputMode={!isSearchable ? 'none' : inputProps?.inputMode}
/>
)}
{!disabled && areOptionsVisible && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ exports[`SingleSelect component should handle builtin form validation 1`] = `
autocomplete="off"
class="c5"
id="medly-singleSelect-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value=""
/>
Expand Down Expand Up @@ -1447,8 +1447,8 @@ exports[`SingleSelect component should take passed max width 1`] = `
autocomplete="off"
class="c5"
id="medly-singleSelect-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value=""
/>
Expand Down Expand Up @@ -1876,8 +1876,8 @@ exports[`SingleSelect component with filled variant should render disabled state
class="c5"
disabled=""
id="medly-singleSelect-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value="Dummy1"
/>
Expand Down Expand Up @@ -2431,8 +2431,8 @@ exports[`SingleSelect component with filled variant should render properly 1`] =
autocomplete="off"
class="c5"
id="medly-singleSelect-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value="Dummy1"
/>
Expand Down Expand Up @@ -3031,8 +3031,8 @@ exports[`SingleSelect component with filled variant should render properly when
autocomplete="off"
class="c5"
id="label-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value="Dummy1"
/>
Expand Down Expand Up @@ -3527,8 +3527,8 @@ exports[`SingleSelect component with filled variant should render with label pro
autocomplete="off"
class="c5"
id="label-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value="Dummy1"
/>
Expand Down Expand Up @@ -5352,8 +5352,8 @@ exports[`SingleSelect component with fusion variant should render disabled state
class="c5"
disabled=""
id="medly-singleSelect-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value="Dummy1"
/>
Expand Down Expand Up @@ -5944,8 +5944,8 @@ exports[`SingleSelect component with fusion variant should render properly 1`] =
autocomplete="off"
class="c5"
id="medly-singleSelect-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value="Dummy1"
/>
Expand Down Expand Up @@ -6581,8 +6581,8 @@ exports[`SingleSelect component with fusion variant should render properly when
autocomplete="off"
class="c5"
id="label-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value="Dummy1"
/>
Expand Down Expand Up @@ -7114,8 +7114,8 @@ exports[`SingleSelect component with fusion variant should render with label pro
autocomplete="off"
class="c5"
id="label-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value="Dummy1"
/>
Expand Down Expand Up @@ -7508,8 +7508,8 @@ exports[`SingleSelect component with outlined variant should render disabled sta
class="c5"
disabled=""
id="medly-singleSelect-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value="Dummy1"
/>
Expand Down Expand Up @@ -8084,8 +8084,8 @@ exports[`SingleSelect component with outlined variant should render properly 1`]
autocomplete="off"
class="c5"
id="medly-singleSelect-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value="Dummy1"
/>
Expand Down Expand Up @@ -8705,8 +8705,8 @@ exports[`SingleSelect component with outlined variant should render properly whe
autocomplete="off"
class="c5"
id="label-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value="Dummy1"
/>
Expand Down Expand Up @@ -9222,8 +9222,8 @@ exports[`SingleSelect component with outlined variant should render with label p
autocomplete="off"
class="c5"
id="label-input"
inputmode="none"
placeholder="Please Select . . ."
readonly=""
type="text"
value="Dummy1"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2214,6 +2214,7 @@ exports[`Form should render properly with initial state 1`] = `
autocomplete="off"
class="c7"
id="country-input"
inputmode="none"
name="country"
placeholder="Please Select . . ."
required=""
Expand Down Expand Up @@ -4458,6 +4459,7 @@ exports[`Form should render properly without initial state 1`] = `
autocomplete="off"
class="c10"
id="country-input"
inputmode="none"
name="country"
placeholder="Please Select . . ."
required=""
Expand Down

0 comments on commit cc471e6

Please sign in to comment.