fps-solutions / FPS-Photo-Form

MIT License
0 stars 0 forks source link

Add a way to remove items from history list #48

Closed mikezimm closed 1 month ago

mikezimm commented 1 month ago

NOTE:

This is getting challenging. The way I'm adding the callback, it seems to be remembering the state of the component when I originally clicked on the history item.

So when I shift-click on the item, it only has the history in memory before I originally added it to the history. So it's incomplete.

Need to find a better way or update the FPSTile element to just accept the callback at the top level.

mikezimm commented 1 month ago

Finally got it working...

Added this optional overRideCallback function with will take the current state:

Root Cause

It really didn't have an issue when not using the remove because it was only doing an onClick to the current item.

image