Filter Working Differently In Preview vs Live

Try to see if putting the .onCurrentIndexChanged inside the $w(“#dataset3”).onReady helps (not sure).

Anyway I think it’ll be easier to filter via code (and not with the UI editor).
and once the filtering gets fulfilled => get the current item and run the collapse expand.