From 6ab8e2a7aec76ead851f8119fd5eb64d4bb74c2c Mon Sep 17 00:00:00 2001 From: Nick Dreckshage Date: Thu, 23 Jun 2016 16:36:56 -0500 Subject: [PATCH] Proptype flexibility for option template Allow images in autocomplete dropdown template, etc. --- src/typeahead/option.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/typeahead/option.js b/src/typeahead/option.js index b6dfc313..e870164c 100644 --- a/src/typeahead/option.js +++ b/src/typeahead/option.js @@ -9,7 +9,10 @@ var TypeaheadOption = React.createClass({ customClasses: React.PropTypes.object, customValue: React.PropTypes.string, onClick: React.PropTypes.func, - children: React.PropTypes.string, + children: React.PropTypes.oneOfType([ + React.PropTypes.string, + React.PropTypes.element + ]), hover: React.PropTypes.bool },