What i’m trying to do:
- i’m adding an add-button in each cell in a table. The cell will have the text value and next to it, will be the add button. I was able to render is correctly and with some css it is looking great.
- When the user click on the add button a function will be called that will perform an action. i am trying to do that using an event listener.
Here is the UI:
Issue: The event listener i added to the button is not triggering the function.
Here is my implementation:
Any idea why this does not trigger the function?