PolymerElements / gold-cc-input

An input element that only allows credit card numbers
https://webcomponents.org/element/PolymerElements/gold-cc-input
13 stars 23 forks source link

[2.0] not working (attribute vs property bindings) #65

Closed robrez closed 7 years ago

robrez commented 7 years ago

Description

In a polymer 2.0 project, the value property is not working. There seem to be a few discrepancies between the v0 (1.0) and v1 (2.0) templates. The 2.0 template is using a couple attribute bindings that should be property bindings and a handful of property bindings that should be property bindings

  // in 1.0 --
  bind-value="{{value}}"

  // in 2.0 --
  bind-value$="{{value}}"

Expected outcome

Value property is updated, value is formatted per the phoneNumberPattern property

Actual outcome

Value property is not updated

robrez commented 7 years ago

OOPS this is the wrong repository! sorry