diff options
Diffstat (limited to 'src/components/ui/select/index.tsx')
-rw-r--r-- | src/components/ui/select/index.tsx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/components/ui/select/index.tsx b/src/components/ui/select/index.tsx index 2605503a3..ac509aa7c 100644 --- a/src/components/ui/select/index.tsx +++ b/src/components/ui/select/index.tsx | |||
@@ -6,10 +6,10 @@ import { | |||
6 | import Icon from '@mdi/react'; | 6 | import Icon from '@mdi/react'; |
7 | import classnames from 'classnames'; | 7 | import classnames from 'classnames'; |
8 | import { ChangeEvent, Component, createRef } from 'react'; | 8 | import { ChangeEvent, Component, createRef } from 'react'; |
9 | import injectStyle from 'react-jss'; | 9 | import injectStyle, { WithStylesProps } from 'react-jss'; |
10 | 10 | ||
11 | import { Theme } from '../../../themes'; | 11 | import { Theme } from '../../../themes'; |
12 | import { IFormField, IWithStyle } from '../typings/generic'; | 12 | import { IFormField } from '../typings/generic'; |
13 | 13 | ||
14 | import { Error } from '../error'; | 14 | import { Error } from '../error'; |
15 | import { Label } from '../label'; | 15 | import { Label } from '../label'; |
@@ -23,7 +23,7 @@ interface IData { | |||
23 | [index: string]: string; | 23 | [index: string]: string; |
24 | } | 24 | } |
25 | 25 | ||
26 | interface IProps extends IFormField, IWithStyle { | 26 | interface IProps extends IFormField, WithStylesProps<typeof styles> { |
27 | actionText: string; | 27 | actionText: string; |
28 | className?: string; | 28 | className?: string; |
29 | inputClassName?: string; | 29 | inputClassName?: string; |
@@ -146,6 +146,7 @@ const styles = (theme: Theme) => ({ | |||
146 | disabled: { | 146 | disabled: { |
147 | opacity: theme.selectDisabledOpacity, | 147 | opacity: theme.selectDisabledOpacity, |
148 | }, | 148 | }, |
149 | input: {}, | ||
149 | }); | 150 | }); |
150 | 151 | ||
151 | class SelectComponent extends Component<IProps> { | 152 | class SelectComponent extends Component<IProps> { |
@@ -457,4 +458,6 @@ class SelectComponent extends Component<IProps> { | |||
457 | } | 458 | } |
458 | } | 459 | } |
459 | 460 | ||
460 | export const Select = injectStyle(styles)(SelectComponent); | 461 | export const Select = injectStyle(styles, { injectTheme: true })( |
462 | SelectComponent, | ||
463 | ); | ||