Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

Conversation

@nestoralonso
Copy link
Contributor

avoid passing properties that don't exist in DOM Nodes to avoid Console errors

avoid passing properties that don't exist in DOM Nodes to avoid Console errors
@nestoralonso nestoralonso changed the title Update index.js DatePickerSidebar: avoid passing properties that don't exist in DOM Nodes to avoid Console errors Jul 15, 2021
@nestoralonso
Copy link
Contributor Author

Explanation

DatePicker passes down selectedRanges and dispatch to children components, DatePickerSidebar takes all the props that it receives and passes it all to a div, the div doesn't support rare props that don't belong in the DOM so it shows an annoying console.error in dev mode. The result is false flag errors in the console that shouldn't be there for normal usage.
From the documentation page running in localhost:
Screen Shot 2021-08-18 at 12 20 07 PM

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant