Skip to content

Props children no Longer Renders #160

Description

@BigPrimeNumbers

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions