PolymerElements / paper-input

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

paper-input type="file": IronValidatorBehavior validate function doesn't get value even after file been choosen #578

Open boopalan-dev opened 6 years ago

boopalan-dev commented 6 years ago

Description

I am using paper-input type="file". And the goal is to validate the input to only allow PDF file. I tried creating custom validator and in the validate function I don't receive the value chosen in the input.

Expected outcome

The validate function should receive the user chosen file input path value to achieve the validation.

Actual outcome

Returns Undefined.

Live Demo

Steps to reproduce

Browsers Affected