Hi,
I’m trying to setup an “Edit” action on a simple Table.
The issue is that if I click “Edit” on the Table I don’t see how to get any reference to the row where the button is clicked.
If you look at the attached screenshot, row 1 is selected, but if then I click on “Edit” on row 2, the selectedRow state is still set to row 1.
How could I get the correct row reference for the clicked action?
Thanks
1 Like
I’m facing the exact same issue
What is weird is that things work in the expected way when using a menu and adding my action as a subitem
but that is not very convenient
Thanks for your help
Please share your project id
Thanks
My project Id is sUydMPyjb6gnSR55KC4qQf
Not sure what you can do with it as I am using local components, not yet published, and I am still in the evaluation phase trying to understand if Plasmic is a good fit
I now have an even weirder behavior with different results with the exact same page between “interactive” mode and “Preview” mode
UPDATE: found the issue, I was rendering the form and using a code snippet for the initial value of a field, instead of hiding it and rendering it only the modal opening
THanks a lot
Hello @christophe_noel, Thank you for letting us know! I’m glad to hear you were able to resolve the issue on your own.
If you have further questions, please don’t hesitate to reach out.