freshworks / crayons

🖍️ Crayons - A UI Kit comprising of web components for building Freshworks Apps!
https://crayons.freshworks.com
219 stars 61 forks source link

[Bug] - Form - Selected date range picker value is undefined on form submit #856

Open srivalli-sivaramasankaran opened 1 year ago

srivalli-sivaramasankaran commented 1 year ago

Component Form

Describe the bug When user selects the date range and clicks submit, the date value is undefined in the data. Date range variant value is not handled in form, whereas it works fine for single datepicker variant.

To Reproduce Steps to reproduce the current behavior:

  1. https://moonlit-rabanadas-0f0022.netlify.app/components/core/form/#demo-dynamic-form
  2. Select the date range and click Sumit.
  3. Check the console for the submitted data.
  4. The date value will be undefined. PFB the screenshots for reference.

Expected behavior Selected date range value should be in the payload.

Screenshots

Screenshot 2023-05-18 at 9 50 15 AM

Netlify link to test the bug https://moonlit-rabanadas-0f0022.netlify.app/components/core/form/#demo-dynamic-form