Skip to content

Conversation

@korylprince
Copy link
Contributor

Fixes #1261.

Notes: use Object.assign to deep copy this.$listeners. delete input key as opposed to setting to undefined which causes error.

...this.$listeners,
input: event => this.$emit('input', event.target.value)
}
var l = Object.assign({}, this.$listeners)
Copy link
Member

Choose a reason for hiding this comment

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

Object.assign is not available for all browsers.

@korylprince
Copy link
Contributor Author

Sorry! I thought Object.assign was transformed by babel. I've changed it over to the spread operator which is transformed by your babel config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants