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

DataTable (Advanced Filtering): 'primereact/calendar' has no exported member named { CalendarChangeEvent } #7208

Closed
iceddrop opened this issue Sep 18, 2024 · 1 comment · Fixed by #7213
Assignees
Labels
Component: Documentation Issue or pull request is related to Documentation
Milestone

Comments

@iceddrop
Copy link

iceddrop commented Sep 18, 2024

Describe the bug

import { Calendar, CalendarChangeEvent } from 'primereact/calendar';

This import (CalendarChangeEvent) seems to be deprecated in the current version of prime react , and the update is yet to reflect in the documentation

what i am trying to use it for:
<Calendar value={options.value} onChange={(e: CalendarChangeEvent) => options.filterCallback(e.value, options.index)} dateFormat="mm/dd/yy" placeholder="mm/dd/yyyy" mask="99/99/9999" />

You will find this part of the code on the documentation on this page , under Advanced filtering ( Typescript )

Reproducer

https://stackblitz.com/edit/mbmcdx-xkfxi5?file=src%2FApp.tsx

System Information

"primereact": "^10.8.3",
"react": "^18.2.0"

Steps to reproduce the behavior

Step 1: Import Calender and CalendarChangeEvent

import { Calendar, CalendarChangeEvent } from 'primereact/calendar';

Expected behavior

// CalendarChangeEvent is not found as an export from 'primereact/calendar'

@iceddrop iceddrop added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 18, 2024
@melloware melloware added Component: Documentation Issue or pull request is related to Documentation and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 18, 2024
melloware added a commit to melloware/primereact that referenced this issue Sep 18, 2024
@melloware melloware self-assigned this Sep 18, 2024
@melloware melloware added this to the 10.8.4 milestone Sep 18, 2024
@melloware
Copy link
Member

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Issue or pull request is related to Documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants