Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #13 from rutsky/search_prop_validator
Browse files Browse the repository at this point in the history
properly check "search" property value
  • Loading branch information
Lapple committed Sep 4, 2015
2 parents 0157854 + cd3c967 commit 0e5c08a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion json-inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ module.exports = React.createClass({
React.PropTypes.array.isRequired,
]),
// For now it expects a factory function, not element.
search: React.PropTypes.func,
search: React.PropTypes.oneOfType([
React.PropTypes.func,
React.PropTypes.bool,
]),
onClick: React.PropTypes.func,
validateQuery: React.PropTypes.func,
isExpanded: React.PropTypes.func,
Expand Down

0 comments on commit 0e5c08a

Please sign in to comment.