Skip to content

Issue when used with createReactClass #189

@carystanley

Description

@carystanley

I found that the plugin had issues when used with createReactClass

example:

var SelectBox = createReactClass({

    propTypes: {	
        value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),	
        selectId: PropTypes.string.isRequired,	
        fullwidth: PropTypes.bool.isRequired	
    },
...
});

Seems to somewhat work on createReactClass components as long as the the propTypes declaration is not two deep like a PropTypes.string.isRequired or as long as functions are not used like: PropTypes.oneOfType(), PropTypes.arrayOf(), or PropTypes.shape(). Almost like PropTypes is being replaced with an empty object.

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