Skip to content
This repository was archived by the owner on Mar 7, 2023. It is now read-only.
This repository was archived by the owner on Mar 7, 2023. It is now read-only.

Unknown Prop Warning on ResponsiveNavigation Component #23

@zythosec

Description

@zythosec

What did you do?
Tried to create a simple ResponsiveNavigation component.

What did you expect to happen?
No warning. It looks like the isHidden prop is getting passed through to the div via the TitleBar component here: https://github.com/nordsoftware/react-foundation/blob/develop/src/components/responsive.js#L73

I would expect that either removeProps needs to be called before passing the props to the div in Titlebar or isHidden can not be passed down to TitleBar since the component does not appear to be using it: https://github.com/nordsoftware/react-foundation/blob/develop/src/components/responsive.js#L100-L110

There may be other places in the code this is happening. I happened to stumble across this one.

What actually happened?
screen shot 2016-10-03 at 10 45 15 pm

What version of this module are you using?
0.7.0
Additionally: using latest React 15.3.2 (this warning was introduced in React 15.2.0)

Code

render (
  <ResponsiveNavigation>
    Test
  </ResponsiveNavigation>
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions