visual-stack
visual-stack copied to clipboard
DatePickerSidebar: 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
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:
