Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Conversation

@seibs
Copy link
Contributor

@seibs seibs commented May 14, 2016

What

When the defaultOptions of a type are defined as a function and a different type extends it, the defaultOptions of the extending type are not correct.

Why

It is a bug.

How

The ordering in the reverseDeepMerge() function was reversed and the incorrect object was being returned. This change flips the parameters and returns the correct object.

For issue #635

Checklist:

Fix the override behavior when the extended type's defaultOptions field is defined as a function.

Closes #635

Fix the override behavior when the extended type's defaultOptions field is defined as a function.

Closes formly-js#635
@kentcdodds
Copy link
Member

Hi @seibs! Thanks for the PR! This looks great to me, could I have someone from @formly-js/angular-formly-collaborators or @formly-js/angular-formly-collaborators-read review this as well?

@gillchristian
Copy link

LGTM :)

@kentcdodds kentcdodds merged commit a4c54bb into formly-js:master May 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants