Unknown prop `onExit` on <div> tag
thejamespower opened this issue · 3 comments
thejamespower commented
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
nhunzaker commented
Hmm. Sorry for the delay. Looking into this.
nhunzaker commented
This was fixed in a prior release. Please give react-focus-trap@2.5.0
a try (if it's still an issue).
thejamespower commented
Thanks @nhunzaker