lukaskral / bootstrap-table-filter

MIT License
48 stars 39 forks source link

Uncaught TypeError: Cannot read property 'toggle' of undefined #21

Open periyasamy25 opened 9 years ago

periyasamy25 commented 9 years ago

Uncaught TypeError: Cannot read property 'toggle' of undefined in bootstrap-table-filter.js:545

joshbenhamou commented 9 years ago

I've got the same issue. This error occurs if you do not show the refresh button. Just add the following condition

if (typeof this.$refreshButton !== 'undefined') this.$refreshButton.toggle(show);
svonborries commented 9 years ago

Hello! @joshbenhamou your solution actually removes the error in the console... but i can't make it filter! when i push refresh button nothing happens! It generate some data in console, but it does nothing... do you have the same issue? I'm using this in a rails project...