Skip to content

Commit

Permalink
Support React.forwardRef in matchElement
Browse files Browse the repository at this point in the history
This is a temporary solution, see facebook/prop-types#200 for details.
  • Loading branch information
kachkaev authored Sep 11, 2018
1 parent 9c59bfe commit 6498483
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/highlighter.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ var Highlighter = createReactClass({
caseSensitive: PropTypes.bool,
ignoreDiacritics: PropTypes.bool,
diacriticsBlacklist: PropTypes.string,
matchElement: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
matchElement: PropTypes.oneOfType([
PropTypes.string,
PropTypes.func,
PropTypes.object,
]),
matchClass: PropTypes.string,
matchStyle: PropTypes.object
},
Expand Down

0 comments on commit 6498483

Please sign in to comment.