This is a migrated thread and some comments may be shown as answers.

[Angular] Template error when no mask is set

1 Answer 83 Views
MaskedTextBox
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 09 Mar 2017, 09:17 PM

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?

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 13 Mar 2017, 09:16 AM

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.
Tags
MaskedTextBox
Asked by
Gary
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or