Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Fix #1261) Don't emit input directly in MdInput and MdTextarea #1285

Merged
merged 2 commits into from Dec 22, 2017
Merged

(Fix #1261) Don't emit input directly in MdInput and MdTextarea #1285

merged 2 commits into from Dec 22, 2017

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants