diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-04-05 11:36:04 +0200 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-04-05 11:36:04 +0200 |
commit | 470e631d5657c9eb50ba0e13fadf3452e77ff499 (patch) | |
tree | 01a902fdf09ac0a303c6a1d17cb5c9fe61858e8c /packages/forms/src/select/index.tsx | |
parent | fix shitty twitter account typo (diff) | |
download | ferdium-app-470e631d5657c9eb50ba0e13fadf3452e77ff499.tar.gz ferdium-app-470e631d5657c9eb50ba0e13fadf3452e77ff499.tar.zst ferdium-app-470e631d5657c9eb50ba0e13fadf3452e77ff499.zip |
Add asterisk if input is required
Diffstat (limited to 'packages/forms/src/select/index.tsx')
-rw-r--r-- | packages/forms/src/select/index.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/forms/src/select/index.tsx b/packages/forms/src/select/index.tsx index 4a9e3c56e..f419d0351 100644 --- a/packages/forms/src/select/index.tsx +++ b/packages/forms/src/select/index.tsx | |||
@@ -306,6 +306,7 @@ class SelectComponent extends Component<IProps> { | |||
306 | showLabel, | 306 | showLabel, |
307 | showSearch, | 307 | showSearch, |
308 | onChange, | 308 | onChange, |
309 | required, | ||
309 | } = this.props; | 310 | } = this.props; |
310 | 311 | ||
311 | const { | 312 | const { |
@@ -334,6 +335,7 @@ class SelectComponent extends Component<IProps> { | |||
334 | title={label} | 335 | title={label} |
335 | showLabel={showLabel} | 336 | showLabel={showLabel} |
336 | htmlFor={id} | 337 | htmlFor={id} |
338 | isRequired={required} | ||
337 | > | 339 | > |
338 | <div | 340 | <div |
339 | className={classnames({ | 341 | className={classnames({ |