Closed DenisBytes closed 4 months ago
Thank you @DenisBytes
for reporting issues. It helps daisyUI a lot ๐
I'll be working on issues one by one. I will help with this one as soon as a I
find a solution.
In the meantime providing more details and reproduction links would be
helpful.
daisyUI is just CSS. It can't change the functionality of your content or the content of arrays.
I have to close this issue because it's not related to daisyUI. However I would be happy to help.
but when i pass that single item to CertificateRowDelete it always displays and refers to the first item in the array
I'm not sure if I'm understanding the issue. what's the array?
the problem is the daisyui modal classes, beacuse when i removed theme id displaayed every single item correctly.
How is it related to theme id?
I believe there is some caching / storing mechanism taking place?
No. daisyUI is just CSS.
My fault. The error was with not daisyui indeed. It was useForm. every time i looped through the map, the "register" function was reassigning the same value to the same useState. the solution is to put inside the map a component, and inside the component put the useForm(), in order to have new states everytime it loops, if it makes sense.
What version of daisyUI are you using?
v4.12.2
Which browsers are you seeing the problem on?
Firefox, Other
Reproduction URL
https://notpublicrepo.com
Describe your issue
Description When i loop thorough the certificate from the CertificateTable component to CerticateRow it displays every single item in certificates correctly. but when i pass that single item to CertificateRowDelete it always displays and refers to the first item in the array. the problem is the daisyui modal classes, beacuse when i removed theme id displaayed every single item correctly. I believe there is some caching / storing mechanism taking place?
Tech: React+Vite+JS