Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning is getting thrown by DatePickerCalendar component when any value is changed #264

Open
1 of 3 tasks
vikrkuma opened this issue Nov 30, 2024 · 1 comment
Open
1 of 3 tasks

Comments

@vikrkuma
Copy link

Description

code

<FormControl>
  <FormLabel>From</FormLabel>
  <DatePicker
    granularity={DATE_PICKER_GRANULARITY}
    strategy="fixed"
    minValue={minValue}
    maxValue={maxValue}
    onChange={(newValue) => setFromDate(humanReadableDateString(newValue?.toString()))}
  >
    <DatePickerTrigger>
      <InputGroup>
        <Input size="md" placeholder="From Date" value={fromDate} isReadOnly />
        <InputRightElement>
          <CalendarIcon />
        </InputRightElement>
      </InputGroup>
    </DatePickerTrigger>
    <DatePickerDialog hideArrow={false}>
      <DatePickerCalendar />
      <DatePickerTimeField granularity={DATE_PICKER_GRANULARITY} />
    </DatePickerDialog>
  </DatePicker>
</FormControl>

When we click on any of the date in the calendar the below warning is thrown.
image

package json

"@chakra-ui/react": "^2.10.4",
"@saas-ui/react": "^2.11.2",
"@saas-ui/date-picker": "^0.15.2",

Link to Reproduction

No response

Steps to reproduce

  1. Go to input box and click on it. The date calendar and time will be shown
  2. Click on any of the date.
  3. The date picker will be closed after the selection of any date and the warning will be shown on the console
  4. See error and component below

Component
image

Error
image

Saas UI Version

2.11.2

Chakra UI Version

2.10.4

Browser

No response

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant