You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's such an odd bug and I haven't been able to figure out why it happens, but when you do
var listObj = new List('whatever', options);
from an included file rather than inside a script tag inside the same html file, the sort buttons only work the first time. When clicked afterwards said button doesn't toggle the list to the opposite order. Any ideas why?
The text was updated successfully, but these errors were encountered:
I had something similar happen to me. What was happening was the sort was being toggled twice on click. I was able to track down where the second sort was happening and remove it. Are the classes (asc and desc) being added to the sort button when it's clicked?
No, it doesn't change the class at all, it seems. It's very strange... however, I did notice the JS external file is being loaded twice (thanks to rails stupid way of handling assets), which would load the var listObj twice. But that by itself should not cause such a weird glitch, specifically with sorting... everything else works just fine.
It's such an odd bug and I haven't been able to figure out why it happens, but when you do
from an included file rather than inside a script tag inside the same html file, the sort buttons only work the first time. When clicked afterwards said button doesn't toggle the list to the opposite order. Any ideas why?
The text was updated successfully, but these errors were encountered: