visual-stack icon indicating copy to clipboard operation
visual-stack copied to clipboard

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

Open nestoralonso opened this issue 4 years ago • 1 comments

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

nestoralonso avatar Jul 15 '21 17:07 nestoralonso

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

nestoralonso avatar Aug 18 '21 17:08 nestoralonso