paper-input icon indicating copy to clipboard operation
paper-input copied to clipboard

paper-textarea allowedPattern doesn't do anything

Open cdata opened this issue 8 years ago • 3 comments

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).

cdata avatar Apr 17 '17 17:04 cdata

+1 source:hooli

krozycki avatar Jul 13 '17 13:07 krozycki

Cowardly un-assigning myself from this

cdata avatar Mar 28 '18 17:03 cdata

I am having the same issue. Any updates here?

achauhantlg avatar Jul 20 '18 08:07 achauhantlg