Skip to content

Commit

Permalink
pass mixinParams to _main
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Apr 20, 2021
1 parent 6dd747c commit 5c836fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export default function withReactContent (ParentSwal) {
}
}

_main (params) {
params = Object.assign({}, params)
_main (params, mixinParams) {
params = Object.assign({}, mixinParams, params)

mounts.forEach(({ key, getter }) => {
if (React.isValidElement(params[key])) {
Expand Down Expand Up @@ -50,7 +50,7 @@ export default function withReactContent (ParentSwal) {
}
})

return super._main(params)
return super._main(params, mixinParams)
}

update () {
Expand Down

0 comments on commit 5c836fc

Please sign in to comment.