googlearchive / paper-dropdown-menu

A UI control to choose an option from a drop-down menu, similar to a <select>
23 stars 21 forks source link

Get a value from dynamic drop down menu to add to firebase database #81

Open shep222 opened 7 years ago

shep222 commented 7 years ago

The dropdown menu will populate with the list, but when I try to push the value to firebase I get an error..."Cannot read property 'value' of undefined".

THE HTML:

THE PUSH to firebase: addPatient: function () { this.$.patients.ref.push({ name: this.$.pxName.value, aptTime: this.$.pxAptTime.value, location: this.$.pxLocation.value, provider: this.$.pxProvider.value <<<<<<<<<<<<< THIS IS WHATS NOT WORKING })

shep222 commented 7 years ago

for some reason it deletes the majority of my HTML. This is the line that I"m trying to get the value from

paper-item id="pxProvider">[[dr.name]]</paper-item

bkr32 commented 6 years ago

hey @shep222 were you able to solve this? i'm migrating to poly 2 and i'm having the same issue