Skip to content
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

Fix Selection in ListWithDetail Renderer #1159

Merged
merged 1 commit into from
Nov 15, 2018

Conversation

eneufeld
Copy link
Member

  • The layout renderer always provided the same rendererProps
    to the jsonforms-outlet independent of the input changes.
    To not rerender the layout on any change we need to fix the ngFor,
    as we can't provide an useful trackBy function we reuse the array.
  • The master-detail.service is unnecessary as we fixed the disposal.
  • The master part didn't refresh item labels on changes in detail,
    thus added the track by.

@edgarmueller
Copy link
Contributor

edgarmueller commented Nov 15, 2018

Tests seem to fail because of the the missing MasterDetailService. Also, I'd update the commit message as this is actually about fixing the layout renderer, right?

Copy link
Contributor

@edgarmueller edgarmueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests failing

* The layout renderer always provided the same rendererProps
to the jsonforms-outlet independent of the input changes.
To not rerender the layout on any change we need to fix the ngFor,
as we can't provide an useful trackBy function we reuse the array.
* The master-detail.service is unnecessary as we fixed the disposal.
* The master part didn't refresh item labels on changes in detail,
thus added the track by.
@eneufeld
Copy link
Member Author

pushed fixed test case and updated commit message

@coveralls
Copy link

coveralls commented Nov 15, 2018

Coverage Status

Coverage increased (+0.05%) to 87.927% when pulling e8f6157 on eneufeld:fix/angular-material into c7b1029 on eclipsesource:master.

@edgarmueller edgarmueller merged commit 229f27e into eclipsesource:master Nov 15, 2018
@edgarmueller edgarmueller changed the title Fix Angular MasterDetail Renderer Fix Selection in ListWithDetail Renderer Nov 15, 2018
@edgarmueller edgarmueller added this to the 2.0.12 milestone Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants