Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Unknown event handler property onExited. It will be ignored #857

Open
irehmanullah opened this issue Sep 30, 2022 · 1 comment
Open

Comments

@irehmanullah
Copy link

I have Updated to latest version(4.4.5) and i am getting this warning in the console. Here is the part of code where i am using TransitionGroup:

<TransitionGroup
style={{ backgroundColor: sideBarBackgroundColor }}
className={cx('app-sidebar h-100', {
'sidebar-shadow': enableSidebarShadow,
})}

@pete-murphy
Copy link

Do you happen to have any non-Transition components rendered within TransitionGroup? For example, this will trigger that error

<TransitionGroup>
  <p>Oops, rendered a paragraph tag inside TransitionGroup</p>
</TransitionGroup>

In the console, you'll see something like

Warning: Unknown event handler property `onExited`. It will be ignored.
p
div
TransitionGroup@https://m5goy8.csb.app/node_modules/react-transition-group/esm/TransitionGroup.js:35:30
div
$csb$eval/Nav<@https://m5goy8.csb.app/node_modules/@restart/ui/esm/Nav.js:40:109
$csb$eval/ListGroup<@https://m5goy8.csb.app/node_modules/react-bootstrap/esm/ListGroup.js:19:196
div
$csb$eval/Container<@https://m5goy8.csb.app/node_modules/react-bootstrap/esm/Container.js:14:36
TodoList@https://m5goy8.csb.app/index.js:18:49 
    in p (created by TodoList)
    in TodoList index.js:27:25

CodeSandbox https://codesandbox.io/s/react-transition-group-857-m5goy8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants