You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Dec 16, 2022
Describe the bug
Forum Post: https://forum.primefaces.org/viewtopic.php?f=57&t=78243
When I used file upload component in primereact 7.2.1 version, there is index prop in item template's props.
Then I upgraded primereact to 8+ version. Now index prop is missing.
Reproducer
https://codesandbox.io/s/pedantic-dirac-ogk0lw?file=/src/demo/FileUploadDemo.js
PrimeReact version
8.7.2
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
ALL
Steps to reproduce the behavior
No response
Expected behavior
The following props should return:
interface ItemTemplateOptions {
onRemove(event: React.SyntheticEvent): void;
previewElement: JSX.Element;
fileNameElement: JSX.Element;
sizeElement: JSX.Element;
removeElement: JSX.Element;
formatSize: string;
files: File[];
index: number;
element: JSX.Element;
props: FileUploadProps;
}
The text was updated successfully, but these errors were encountered: