Open cdata opened 7 years ago
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).
paper-textarea
PaperInputBehavior
allowedPattern
paper-input
+1 source:hooli
Cowardly un-assigning myself from this
I am having the same issue. Any updates here?
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
usesPaperInputBehavior
, but doesn't actually implement any observers to respond to changes toallowedPattern
(today onlypaper-input
uses that property for anything).