question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] window.operateEvents returning the wrong "row" data after deleting bottom and top rows from table.

See original GitHub issue

After appending rows from one table to another I try to test the delete button located in a column of the 2nd table which was created with the column formatter and uses the window.operateEvents call for the listener. After pressing the delete button a few times, once on the bottom row, once on the top row. The data coming back from the event starts to become incorrect and is returning rows that have already been deleted. When i use the “getData” method the rows being returned are no longer in the array. Seems that others are having similar issues.

The code in question below with the “row” parameter being incorrect after a few clicks.

   window.operateEvents = {
        'click .remove': function (e, value, row, index) {
                $('#tblBulkUpdateSalesRepHistoryBatch').bootstrapTable('removeByUniqueId', row.Id);
        }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wenzhixincommented, Jan 8, 2019

OK, I will consider to improving it.

0reactions
danger89commented, Jan 8, 2019

@wenzhixin I know… I said it was hard to find the SOURCE CODE. Since I didn’t expect it was hosted on github.com itself as well. And the github link/menu item on that webpage went not to Bootstrap-table source but actually to the bootstrap-table-examples source, that was unexpected. Often you see a link above an example with a link, saying "View source-code". Right?

Sorry to be so picky, but that was my experience, I can’t change how my experience was.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[bug] window.operateEvents returning the wrong "row" data ...
[bug] window.operateEvents returning the wrong "row" data after deleting bottom and top rows from table.
Read more >
Solved: bootstrapTable - Experts Exchange
I am using bootStrap table in conjunction with COldFusion and its all ... operateFormatter(value, row, index) { return [ '<a class="edit ...
Read more >
INACCESSIBLE BOOT DEVICE after deleting upper and lower ...
I've tried multiple of his suggestions until finally the part to delete lower and upper filters in the registry for the device cd/dvd...
Read more >
Bootstrap table-deleting a row from the DOM destroys the ...
This is the table I am using. I have some static data to make it seem like the page is retaining data from...
Read more >
Documentation - Bootstrap Table
Defaultfalse. DescriptionTrue to stripe the rows. NamesortName. Attributedata-sort-name. TypeString. Defaultundefined. DescriptionDefines which column will ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found