Skip to content

Commit

Permalink
fixes: helperText no longer accepting React nodes (#2280)
Browse files Browse the repository at this point in the history
* fixes: helperText no longer accepting React nodes

fixes #2279

* Update label.tsx

* lint
  • Loading branch information
will-stone authored and giladgray committed Mar 20, 2018
1 parent 0f5b38f commit 5db3202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/forms/label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class Label extends React.PureComponent<ILabelProps, {}> {
return (
<label {...htmlProps} className={rootClasses}>
{text}
{helperText && <span className={classNames(Classes.TEXT_MUTED)}>{" " + helperText}</span>}
{helperText && <span className={Classes.TEXT_MUTED}> {helperText}</span>}
{children}
</label>
);
Expand Down

1 comment on commit 5db3202

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes: helperText no longer accepting React nodes (#2280)

Preview: documentation | landing | table

Please sign in to comment.