[Angular] Template error when no mask is set

2 posts, 0 answers
  1. Gary
    Gary avatar
    1 posts
    Member since:
    Mar 2017

    Posted 09 Mar Link to this post

    According to the API documentation, the lack of a mask should result in a normal input of type `text` (http://www.telerik.com/kendo-angular-ui/components/inputs/api/MaskedTextBoxComponent/).  I've tried empty string, not setting mask, having a mask of both null and undefined but nothing seems to work.

    A simple plunker fork of your demo shows it breaking:

    http://plnkr.co/edit/EpmbKmUWNk2Y2zqgj4R6?p=preview

    The error I receive is:

    EXCEPTION: Error in ./MaskedTextBoxComponent class MaskedTextBoxComponent - inline template:1:8 caused by: Cannot read property 'test' of undefined

     

    Also, is there another means to get a standard text input?

  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2287 posts

    Posted 13 Mar Link to this post

    Hello Gary,

    Unfortunately there is a bug in the component. We are working on addressing all such reports regarding the MaskedTextBox component.

    Currently you can keep track on the progress for this problem in this github issue.

    Regards,
    Nikolay Rusev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top