-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Steps to reproduce
Any HTML in an md-option triggers a Vue Warn reporting an error.
<md-field>
<label for="profile">Process Profile</label>
<md-select v-model="selected.profile" name="" :placeholder="placeholder.profile" id="profile">
<md-option v-for="(packet,index) in list.profiles" :key="packet.id" :value="index">
<span>Hello</span> World
</md-option>
</md-select>
</md-field>Which browser?
Google Chrome 67.0.3396.99 (Official Build) (64-bit)
VUE : 2.5.16
VUE Material : 1.0.0-beta-10.2
What is actually happening?
[Vue warn]: Error in created hook: "TypeError: Cannot read property 'trim' of undefined"
TypeError: Cannot read property 'trim' of undefined
Triggered by source:
getTextContent: function getTextContent() {
if (this.$el) {
return this.$el.textContent.trim();
}
var slot = this.$slots.default;
return slot ? slot[0].text.trim() : ''; // <--- call to trim() on undefined in this line
},Reproduction Link
zakizaki-ri9, dsusanibarblazing and abhimanusharma