Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,16 @@ export default function wrap (Vue, Component) {
if (!wrapper._isMounted) {
// initialize attributes
const syncInitialAttributes = () => {
wrapper.props = getInitialProps(camelizedPropsList)
wrapper.props = Object.assign(
getInitialProps(camelizedPropsList),
wrapper.props
)
hyphenatedPropsList.forEach(key => {
syncAttribute(this, key)
const camelized = camelize(key)
// Maybe setted by Element properties earler
if (typeof wrapper.props[camelized] === 'undefined' || this.hasAttribute(key)) {
syncAttribute(this, key)
}
})
}

Expand Down