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

Switch component prop blacklist to a whitelist #39

Closed
tractorcow opened this issue Aug 30, 2017 · 1 comment
Closed

Switch component prop blacklist to a whitelist #39

tractorcow opened this issue Aug 30, 2017 · 1 comment

Comments

@tractorcow
Copy link
Collaborator

At the moment we have:

const filteredProps = Object.assign({}, this.props);
        delete filteredProps.onSelection;
        delete filteredProps.fixedPosition;
        delete filteredProps.selectOnMouseMove;
        delete filteredProps.component;
        delete filteredProps.tolerance;
        delete filteredProps.preventDefault;

However we end up with errors still.

image

I suggest to change this to a filtered whitelist of properties that can be safely passed to any component.

@tractorcow
Copy link
Collaborator Author

Fixed with 0824bfa

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