Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #17 from jaroslav-kubicek/fix-proptypes-children
Browse files Browse the repository at this point in the history
Accept only single child
  • Loading branch information
oliviertassinari authored Oct 12, 2016
2 parents ed1f6f5 + 9df7349 commit 1a5ce90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export function withOptions(handler: Function, options: EventOptions): {handler:
class EventListener extends Component {
static propTypes = {
/**
* You can provide a children too.
* You can provide a single child too.
*/
children: PropTypes.node,
children: PropTypes.element,
/**
* The DOM target to listen to.
*/
Expand Down

0 comments on commit 1a5ce90

Please sign in to comment.