We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
text
renderLabel
1 parent c3640e4 commit 859146fCopy full SHA for 859146f
src/modules/Dropdown/Dropdown.js
@@ -41,9 +41,9 @@ const getKeyAndValues = (options) =>
41
function renderItemContent(item) {
42
const { flag, image, text } = item
43
44
- // TODO: remove this in v2
+ // TODO: remove this in v3
45
// This maintains compatibility with Shorthand API in v1 as this might be called in "Label.create()"
46
- if (React.isValidElement(text) || _.isFunction(text)) {
+ if (_.isFunction(text)) {
47
return text
48
}
49
0 commit comments