PolymerElements / paper-input

A Material Design text field
https://www.webcomponents.org/element/PolymerElements/paper-input
130 stars 162 forks source link

Default value used to be empty string and is now undefined. #633

Closed notwaldorf closed 6 years ago

notwaldorf commented 6 years ago

Last paper-input 1.x release: https://raw-dot-custom-elements.appspot.com/PolymerElements/paper-input/v1.1.24/paper-input/demo/index.html If you inspect the first paper-input, its value is ""

Current paper-input 2.x with Polymer 1: http://jsbin.com/vuhidof/edit?html If you inspect the first paper-input, its value is undefined

notwaldorf commented 6 years ago

I think the suspect is actually iron-input:

iron-input 1.0.11 demo: https://raw-dot-custom-elements.appspot.com/PolymerElements/iron-input/v1.0.11/iron-input/demo/index.html Default value is ""

iron-input 2.1.2 demo: https://raw-dot-custom-elements.appspot.com/PolymerElements/iron-input/v2.1.2/iron-input/demo/index.html Default value is undefined.

freshp86 commented 6 years ago

Should we move this bug over to iron-input? Also is there any candidate fix?

notwaldorf commented 6 years ago

I haven't got a chance to look into it yet. Hoping to this week.

notwaldorf commented 6 years ago

This issue was moved to PolymerElements/iron-input#129