PolymerElements / paper-input

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

paper-textarea allowedPattern doesn't do anything #516

Open cdata opened 7 years ago

cdata commented 7 years ago

Description

According to the documentation, allowedPattern and preventInvalidInput should only allow users to enter characters that match the specified pattern: https://www.webcomponents.org/element/PolymerElements/paper-input/paper-textarea

However, my testing shows this to not be the case. e.g., in the following jsfiddle, I can enter any characters I want, not just digits: http://jsbin.com/sahakihaja/edit?html,console,output

The source of the problem is that paper-textarea uses PaperInputBehavior, but doesn't actually implement any observers to respond to changes to allowedPattern (today only paper-input uses that property for anything).

krozycki commented 7 years ago

+1 source:hooli

cdata commented 6 years ago

Cowardly un-assigning myself from this

achauhantlg commented 6 years ago

I am having the same issue. Any updates here?