[bug] window.operateEvents returning the wrong "row" data after deleting bottom and top rows from table.
See original GitHub issueAfter 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:
- Created 7 years ago
- Comments:12 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, I will consider to improving it.
@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.