saltcorn icon indicating copy to clipboard operation
saltcorn copied to clipboard

Button in feed items not correctly working

Open fiveoaksmn opened this issue 11 months ago • 0 comments

  1. Create an "Edit" view and add an "Action" button with action type of "run_js_code". For the code, enter:
console.log( id );
console.log( row.id );
  1. Create a "Feed" view and associated with the view from # 1.
  2. Enter some data into the table associated with the form in # 1.
  3. View the "Feed" view from # 2
  4. Click on any of the buttons and look at the console log. You will notice that the id's outputted in the console is always the last row in the feed list. Never from the row that was clicked on.

Expected behavior is that the ID of the row containing the button that was clicked on would be outputted in the console log.

fiveoaksmn avatar Mar 14 '24 03:03 fiveoaksmn