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

Props children no Longer Renders #160

Open
BigPrimeNumbers opened this issue Sep 17, 2018 · 0 comments
Open

Props children no Longer Renders #160

BigPrimeNumbers opened this issue Sep 17, 2018 · 0 comments

Comments

@BigPrimeNumbers
Copy link

BigPrimeNumbers commented Sep 17, 2018

The prop children used to work as expected, and would render controls that were passed via it. Now it appears to no longer render anything. This code used to display two buttons at the bottom of the notification:

const controls =
     <div>
         <button type="button" onClick={doSomething}>YES</button>
         <button type="button" >NO</button>
     </div>
const notification = {
     dismissible: true,
     title: 'some title',
     message: "some msg",
     level: 'warning',
     autoDismiss: 0,
     children: controls,
 }

Now no buttons render unless I use the action prop. For reference, I'm using React 15.6.2

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

1 participant