fix(ott-256): sport type filter fixes (#60)

keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
Ruslan Khayrullin 5 years ago committed by GitHub
parent e6873a698f
commit f09755cb53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/features/Combobox/index.tsx
  2. 1
      src/features/Combobox/types.tsx
  3. 1
      src/features/HeaderFilters/components/SportTypeFilter/index.tsx
  4. 1
      src/features/HeaderFilters/components/SportTypeFilter/styled.tsx

@ -34,6 +34,7 @@ export const Combobox = <T extends Option>(props: Props<T>) => {
openOnFocus, openOnFocus,
pattern, pattern,
placeholder, placeholder,
readOnly,
required, required,
title, title,
withArrow, withArrow,
@ -77,6 +78,7 @@ export const Combobox = <T extends Option>(props: Props<T>) => {
onBlur={onInputBlur} onBlur={onInputBlur}
onKeyDown={onKeyDown} onKeyDown={onKeyDown}
placeholder={placeholder} placeholder={placeholder}
readOnly={readOnly}
/> />
{!isEmpty(options) && ( {!isEmpty(options) && (
<ComboboxPopoverStyled> <ComboboxPopoverStyled>

@ -20,6 +20,7 @@ export type Props<T> = Pick<InputHTMLAttributes<HTMLInputElement>, (
| 'pattern' | 'pattern'
| 'title' | 'title'
| 'placeholder' | 'placeholder'
| 'readOnly'
)> & { )> & {
customListStyles?: TCustomStyles, customListStyles?: TCustomStyles,
error?: string | null, error?: string | null,

@ -21,6 +21,7 @@ export const SportTypeFilter = () => {
onSelect={onSelect} onSelect={onSelect}
openOnFocus openOnFocus
withArrow withArrow
readOnly
/> />
</Wrapper> </Wrapper>
) )

@ -19,6 +19,7 @@ export const Wrapper = styled.div`
margin-left: 0; margin-left: 0;
overflow: hidden; overflow: hidden;
font-size: 18px; font-size: 18px;
cursor: pointer;
&[aria-expanded="true"] { &[aria-expanded="true"] {
::placeholder { ::placeholder {

Loading…
Cancel
Save