angular-filter icon indicating copy to clipboard operation
angular-filter copied to clipboard

toArray doesn't work fine with ui.bootstrap ?

Open raczynskil opened this issue 8 years ago • 8 comments

Hello guys, Can you tell me what I'm doing wrong that ui.bootstrap + groupBy + toArray don't work together ?

Examples: http://plnkr.co/edit/G6sHrEHQIGVBwzolxlYb?p=preview

raczynskil avatar Jul 10 '15 09:07 raczynskil

I have same problem, does anyone know solution for this?

tarlepp avatar Aug 17 '15 09:08 tarlepp

I am having the same problem, though mine deals with a dropdown in an ngRepeat using toArray. I believe toArray is causing ngRepeat to constantly update (almost like an infinite loop). I only say this because I can open chrome dev tools and see the table rows constantly being recreated (its even slowing down other animations on the page).

forrestab avatar Aug 27 '15 19:08 forrestab

Have a similar problem. Agree with @forrestab

mukgupta avatar Sep 21 '15 15:09 mukgupta

Looks like the issue is resolved in v0.5.6. I'm closing it. If there's still any problem, do not hesitate to reopen.

Thanks.

a8m avatar Sep 23 '15 10:09 a8m

Thanks @a8m,

It is sort of working now, but the collapse action still seems buggy.

In your JSBin, the non-toArray example works perfectly every time. But if you click around the toArray example for a while it definitely seems buggy.

cjwebdev avatar Sep 24 '15 01:09 cjwebdev

Hi, This still is buggy in v0.5.8 http://plnkr.co/edit/3YoIOChUnxmghFlKtPZT?p=preview

Thanks

jschuler avatar Oct 09 '15 20:10 jschuler

Looks like the "infinite loop" issue has been fixed, though clicking on a dropdown still seems to cause ngRepeat to update. I am seeing the same results as @jschuler's plnkr.

forrestab avatar Oct 13 '15 13:10 forrestab

Same here. Simply using ng-click causes ng-repeat to update and makes the ui behaves badly. +1 for any help Thanks

<section ng-repeat="group in data | groupBy:'groupName' | toArray:true">
    <button ng-repeat="item in group" ng-click="select(item)">
        {{ item.name }}
    </button>
</section>

Badisi avatar Oct 22 '15 21:10 Badisi