-
Notifications
You must be signed in to change notification settings - Fork 137
fix: make CPopper's modifiers to be correctly merged #424
fix: make CPopper's modifiers to be correctly merged #424
Conversation
|
|
@MaySoMusician is attempting to deploy a commit to the Chakra UI Team on Vercel. A member of the Team first needs to authorize it. |
|
This pull request is being automatically deployed with Vercel (learn more). chakra-ui-vue – ./🔍 Inspect: https://vercel.com/chakra-ui/chakra-ui-vue/CaCVNVLgt7TU8bt7yy5Xmcz29pDd |
codebender828
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @MaySoMusician
|
@all-contributors please add @MaySoMusician for code |
|
I've put up a pull request to add @MaySoMusician! 🎉 |
Description
(edited) fix #414
Added a function for merging
Modifiersof CPopper, that will merge the destination item of an array of modifiers into the corresponding (i.e. having the samename) item of the source array of modifiers, with_.merge()Motivation and Context
The original
_.merge()does never know which item of the destination array should be merge into an item of the source array, but simply merge them according to the order. For example:should be merged into
but you will actually get
How Has This Been Tested?
CPopper doesn't have tests currently, and I don't know how to write tests for Vue components, so I ran the code below and confirmed if the output is the same as the example as I mentioned above.
Screenshots (if appropriate):
n/a
Types of changes
Checklist: