Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Dropdown): simplify typings validation for renderLabel #1574

Merged
merged 1 commit into from
Apr 13, 2017

Conversation

layershifter
Copy link
Member

Fixes #1568.

Simplifies validation for renderLabel because it uses Label's factory that can accept element, object or string (ref #1289).

@@ -225,7 +225,7 @@ export interface DropdownProps {
tabIndex?: number | string;

/** The text displayed in the dropdown, usually for the active item. */
text?: string|React.ReactNode;
text?: string;
Copy link
Member Author

Choose a reason for hiding this comment

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

text prop can be only string.

@codecov-io
Copy link

Codecov Report

Merging #1574 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1574   +/-   ##
=======================================
  Coverage   99.74%   99.74%           
=======================================
  Files         141      141           
  Lines        2381     2381           
=======================================
  Hits         2375     2375           
  Misses          6        6

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68b08a6...cfb32dc. Read the comment docs.

@levithomason levithomason merged commit a1bbc4a into master Apr 13, 2017
@levithomason levithomason deleted the fix/dropdown-typings branch April 13, 2017 20:12
@levithomason
Copy link
Member

Released in semantic-ui-react@0.68.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants