Skip to content

Commit

Permalink
Merge pull request #431 from dcos-labs/mp/fix/select-field-hint-text
Browse files Browse the repository at this point in the history
fix: show hint content under the select input
  • Loading branch information
mperrotti authored Nov 7, 2019
2 parents b507e4d + 812f0f7 commit f9aebc3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/selectInput/components/SelectInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,12 @@ class SelectInput extends React.PureComponent<
/>
</span>
</span>
{hasError &&
getValidationErrors && (
<div data-cy="selectInput-hintContent">
{getHintContent}
{hasError && getValidationErrors}
</div>
)}
{Boolean(getHintContent) || hasError ? (
<div data-cy="selectInput-hintContent">
{getHintContent}
{hasError && getValidationErrors}
</div>
) : null}
</div>
)}
</FormFieldWrapper>
Expand Down

0 comments on commit f9aebc3

Please sign in to comment.