Coder Social home page Coder Social logo

Support for Ionic 2 about ng2-currency-mask HOT 9 CLOSED

cesarrew avatar cesarrew commented on August 16, 2024
Support for Ionic 2

from ng2-currency-mask.

Comments (9)

Pernett98 avatar Pernett98 commented on August 16, 2024 4

Hi! not works.
console output is: Cannot read property 'createRange' of undefined

from ng2-currency-mask.

cesarrew avatar cesarrew commented on August 16, 2024 1

I've changed the directive's selector, but I'm struggling to have time to test this directive in Ionic. Could someone do this test with the new version?

from ng2-currency-mask.

iowaz avatar iowaz commented on August 16, 2024 1

Hello.

I has the "Cannot read property 'createRange' of undefined" error, even if I use just a input with type=number.

It's correct to assume that type='number' can't be used with masks?

from ng2-currency-mask.

cesarrew avatar cesarrew commented on August 16, 2024

Thanks. Yes, I plan.

from ng2-currency-mask.

marcoskichel avatar marcoskichel commented on August 16, 2024

Any release date?

from ng2-currency-mask.

sneurlax avatar sneurlax commented on August 16, 2024

It turns out that this is just a bit more difficult than changing

            selector: "input[currencyMask]",

to

            selector: "ion-input[currencyMask]",

ha! (dang)

from ng2-currency-mask.

isrmicha avatar isrmicha commented on August 16, 2024

most of the masks i see use type="text"

from ng2-currency-mask.

cesarrew avatar cesarrew commented on August 16, 2024

There is a new section in README.md called 'Quick fixes' with some tips to use this directive with Ionic. If problems persist, please reopen the issue.

from ng2-currency-mask.

Sampath-Lokuge avatar Sampath-Lokuge commented on August 16, 2024

@cesarrew Can you tell me what is index here? Do we need to define that on ts file?

<input currencyMask type="tel" [(ngModel)]="value" [id]="'yourInputId' + index" (focus)="scrollTo(index)" />

I cannot click the input box. Do I need to use ion-input instead? That too not working. It shows below error. Please see that.

from ng2-currency-mask.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.