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

Add JsonFormsAbstractControl to exported classes #1785

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

eneufeld
Copy link
Member

The JsonFormsAbstractControl was not exported by the angular package.
This lead to duplicate instances of the angular package when using the
ArrayLayoutRenderer and thus to the ArrayLayoutRenderer not working.
By not using a deep import in the ArrayLayoutRenderer only one instance
of the angular package exists.

Fix #1781

The JsonFormsAbstractControl was not exported by the angular package.
This lead to duplicate instances of the angular package when using the
ArrayLayoutRenderer and thus to the ArrayLayoutRenderer not working.
By not using a deep import in the ArrayLayoutRenderer only one instance
of the angular package exists.

Fix eclipsesource#1781
Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

@JBBianchi
Copy link
Contributor

mapToProps have two different levels of protection in JsonFormsAbstractControl (protected) and ArrayLayoutRenderer (public). I guess they should both be protected.

@sdirix
Copy link
Member

sdirix commented Jul 13, 2021

mapToProps have two different levels of protection in JsonFormsAbstractControl (protected) and ArrayLayoutRenderer (public). I guess they should both be protected.

It's fine for a subclass to expose more than a parent class. Also this is just typing related and has no effect at runtime as in "pure" JS they are all just "public".

@JBBianchi
Copy link
Contributor

ok, nvm then :)

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.003%) to 88.6% when pulling d8b7554 on eneufeld:bug-1781 into 96e2c41 on eclipsesource:master.

@eneufeld eneufeld merged commit a83b128 into eclipsesource:master Jul 13, 2021
@eneufeld eneufeld deleted the bug-1781 branch July 13, 2021 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Angular Material ArrayLayoutRenderer: Cannot read property 'scope' of undefined
4 participants