MaskedEditBox Missing Last 0

3 posts, 0 answers
  1. Joon-Sae
    Joon-Sae avatar
    3 posts
    Member since:
    Mar 2014

    Posted 19 Jan 2015 Link to this post

    http://dojo.telerik.com/EXODI

    creating a mask as described below, the last character should be the number zero.
    $("#maskedtextbox").kendoMaskedTextBox({
        mask: "\\1\\0A\\ 00\\ 00\\ 000\\ 00\\ L0\\ \\00",
      value: "100 14 36 085 17 W6 00"
    });

    when the mask renders it renders as 100 14 36 085 17 W6 0_
    it loses the last character.  If the last character is not a zero then it seems to work fine but must be some wierd logic in there where it's causing the last number to be lost.
  2. Joon-Sae
    Joon-Sae avatar
    3 posts
    Member since:
    Mar 2014

    Posted 19 Jan 2015 in reply to Joon-Sae Link to this post

    The problem seems to be line 160 in kendo.maskedtextbox.js

    by getting the unmasked value and then passing it along to mask (which in turn gets an unmasked value) drops characters that match the mask and the unmasked value.

    removing the unmask prior to setting mask seems to correct the issue.
  3. Kendo UI is VS 2017 Ready
  4. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 21 Jan 2015 Link to this post

    Hello Joon-Sae,

    Thank you for drawing our attention to this issue. I logged the bug here and we will try to address it for the next official release of Kendo UI.

    I updated your Telerik points because of the involvement.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top