-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering hierarchy out of place, toggleProperty toggles all items in array when called on itemController. #5330
Comments
Turns out that the action 'toggleProperty' is being called on the ClientsController since it's in the clients template. If I could delegate that to the appropriate itemController that would resolve that issue. |
resolved my own issue 1 by defining the itemController in the view and using client.isExpanded:
|
calling methods via actions is actually deprecate. Please define the action on your controller, and then your controller action can invoke toggleProperties appropriately |
Done thanks. I'm still invoking the action via action and calling toggleProperty action on the itemController, which I had to define in the action helper in order for it to expand only the client that was clicked on. The bigger issue is that when you run the bin, click "clients", click client "man", click "ma1" (output renders as expected), then click "ma2" (the hierarchy is jumbled for the teams). |
@stefanpenner can you verify if this is a bug? |
itemController and arrayControllers are deprecated |
2 issues:
http://jsbin.com/wijigo/1/edit
The text was updated successfully, but these errors were encountered: