BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
Hi,
The DateRangePickerComponent currently gives an error under circumstances where you select a value from another dropdown within the same parent component, then proceed to select the DateRangePickerComponent, then deselect it.
The error stack looks something like this:
Warning: validateDOMNesting(...): <div> cannot appear as a child of <table>.
Warning: unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering.
Uncaught TypeError: Cannot read properties of undefined (reading 'querySelector')
Using:
Are there any workarounds for this?
Thanks.
Hi Jonathan Deehan,
Greeting from Syncfusion support!
Thank you for reaching out to us with your concern about the DateRangePickerComponent. We appreciate your detailed description of the issue.
After reviewing your query, we created a sample and attempted to replicate the problem using the provided information. Unfortunately, we were unable to reproduce the issue on our end.
You can review our sample implementation on StackBlitz: https://stackblitz.com/edit/react-grpdtk-ncsnbf?file=index.js,package.json
To better assist you, we kindly ask for additional details about your specific implementation. Could you please provide a more comprehensive code snippet or modify the sample to reflect your scenario? Additionally, sharing any replication steps and a video illustration of the issue would greatly aid our investigation.
Our goal is to address your concern promptly, and your collaboration in providing more information will help us achieve that.
Thank you for your understanding and cooperation.
Regards,
Kokila Poovendran.
Hi Kokila,
Thank you for the reply.
Here are some code snippets of the date range picker logic to help assist in the understanding of our issue (note,
onChange refers to a function passed in the props that this date picker component resides within):
Hi Jonathan Deehan,
Thank you for sharing the code snippets. We've carefully reviewed the provided information and tested it using the sample you shared. However, we couldn't replicate the reported issue on our end.
We've incorporated the valueChange event with the code you provided and created a sample using the information you shared. Here's the sample: Sample: https://stackblitz.com/edit/react-grpdtk-ay92wk?file=index.js,index.css
Please take a look at the sample, and please modify it to include the specific conditions or scenarios that replicate the issue you are facing. This will help us better understand and address the problem.
If there are additional details or specific steps to reproduce the issue, kindly provide them so that we can investigate further and provide a more accurate solution.
Thank you for your cooperation.