Cleave.js: noImmediatePrefix blocks input changes

Created on 28 Mar 2019  路  6Comments  路  Source: nosir/cleave.js

To reproduce the error or describe your requirement with a jsfiddle url would be appreciated:

noImmediatePrefix

When noImmediatePrefix: true the inputs do not update the values.

resolved urgent bug

Most helpful comment

Fix released in v1.5.3, npm published.
Thanks

All 6 comments

It was broken by this commit: https://github.com/nosir/cleave.js/commit/cf53ffb3c1505ebe0a415c792392defb1d87434f#diff-1fafc1e5babfd631f72da920ab89c668R97

Any updates on it?

@nosir could you please look into this?

I think this issues extends beyond cleave-react as this is causing the same issues for me using the following manual phone number format

new Cleave(this.element, {
  numericOnly:       true,
  prefix:            this.countryCode,
  noImmediatePrefix: true,
  blocks:            [0, this.countryCode.length, 0, 3, 0, 3, 4],
  delimiters:        ['+', ' ', '(', ')', ' ', '-']
})

Everything works fine until we add prefixing. I ended up rolling back to v.1.4.7 as a temporary solution

Same problem here.

Fix released in v1.5.3, npm published.
Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fcoms picture fcoms  路  3Comments

melbon picture melbon  路  3Comments

ArtyomBist picture ArtyomBist  路  6Comments

qm3ster picture qm3ster  路  4Comments

Scit picture Scit  路  4Comments