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

filter dont work on last version

Open Menogus opened this issue 10 years ago • 7 comments

on 0.7.2 dont work on node.js (0.12.0) server (on meteor - all ok) on 0.6.15 - on everything all ok

PS. i dont use personal filters just: {{> reactiveTable settings=staffReactive class="table table-bordered table-striped table-hover" rowsPerPage=60}}

Menogus avatar Apr 07 '15 10:04 Menogus

I tried one of my examples on node 0.12.2 and it worked fine. Are you getting any error messages?

aslagle avatar Apr 14 '15 01:04 aslagle

I am running into the same issue. Filter stops working when there is a sort: 'descending' on a column

aminjam avatar May 02 '15 19:05 aminjam

I still can't reproduce this, on node 0.12.2 with sort: 'descending'.

aslagle avatar May 03 '15 19:05 aslagle

EDIT: For some reason, this was only happening when the parent template was rendering twice (don't know why, it had something to do with subscriptions loading), so preventing that double rendering fixed it.

EDIT2: Nah. Wasn't that simple after all. Still acting up. Very unpredictable behaviour

Ridiculously hacky workaround for moment, which forces the behaviour described below:

Template.parentTemplate.onRendered ->
  setTimeout ->
    @$('table th.sortable:first').click().click()
  , 500

+1 - I'm having the same issue, but it fixes itself as soon as I start sort any of the columns: Repro for me:

  1. Template containing table loads, table has data
  2. Start typing the filter box, nothing happens, press enter, nothing happens
  3. Click any of the column headers to sort -- the filter is now applied and working
  4. From now on, typing in the filter box listens to keyup as expected

So initiating a sort seems to fix the issue (but not if using a sort option).

This is on a project I just updated from Meteor 0.8 to 1.2, it was working before & nothing else has changed.

Table settings looks like this:

    rowsPerPage: 30
    useFontAwesome: true
    showNavigation: 'always'
    fields:[
        key: 'profile.last_name'
        label: TAPi18n.__ 'last_name'
      ,
        key: 'profile.first_name'
        label: TAPi18n.__ 'first_name'
      ,
        key: 'profile.company'
        label: TAPi18n.__ 'company'
      ,
        key: 'sign_ins'
        label: TAPi18n.__ 'signed_in'
        fn: (val,obj) -> if val && val.indexOf(sessionId) > -1 then '✓'
    ]

Will look into it...

IstoraMandiri avatar Oct 26 '15 06:10 IstoraMandiri

yep...i still use 0.6.15 version of reactiveTable :)) with nodejs 4.2.1 now

Menogus avatar Oct 28 '15 10:10 Menogus

this happened to me, but adding {{#if Template.subscriptionsReady}} solved it

sirpy avatar Dec 27 '15 20:12 sirpy

If anyone was still having this problem, I think it's finally fixed. Try version 0.8.29!

aslagle avatar Apr 17 '16 16:04 aslagle