reactive-table icon indicating copy to clipboard operation
reactive-table copied to clipboard

some "Spacebars cells" disappear

Open guillim opened this issue 8 years ago • 2 comments

It is a strange problem. I have a Reactive-table with 3 columns working fine. those 3 columns only display simple collection attributes. However, my last column is a bit more complicated and requires Spacebars (see bellow). Strange enough, when i launch the page some of the cells disappear after 1second. Even more strange, Those cells re-appear when i go to page 2 of my table, and then back to page 1.

Any idea why it behaves like that ?

Here is the code describing the cell that causes problem: return new Spacebars.SafeString("<button id="+id+" >Buy<i class='fa fa-shopping-cart' aria-hidden='true'></i></button>"); Note: id is an attribute part of my collection

Here is what is looks like after 1 second: screen shot 2016-12-30 at 12 54 47

and here is what it looks like -before some cells disappear -when i go to page 2 and go back to page 1 screen shot 2016-12-30 at 12 56 19

guillim avatar Dec 30 '16 11:12 guillim

That is strange, I don't know what the problem could be.

aslagle avatar Jan 05 '17 00:01 aslagle

I found out on new thing. When i remove the "id" from the Spacebars.SafeString then it works fine. So my guess is that at some point SpaceBars reactivity creates a problem when it is launched from within a helper

guillim avatar Apr 06 '17 16:04 guillim