vigetlabs/react-focus-trap

Unknown prop `onExit` on <div> tag

thejamespower opened this issue · 3 comments

Not sure if I'm just doing something really wrong here but this is my code:

return <FocusTrap active={this.props.menuVisible} onExit={this.escape}> 
...

Which fires a React error:
Warning: Unknown prop onExit on

tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop

Hmm. Sorry for the delay. Looking into this.

This was fixed in a prior release. Please give react-focus-trap@2.5.0 a try (if it's still an issue).