Unexpected behavior of Paste. Again!

2 posts, 1 answers
  1. Vadimir
    Vadimir avatar
    24 posts
    Member since:
    Aug 2013

    Posted 17 Dec 2014 Link to this post

    I'm using Telerik version 2014.3.1202.40. The MaskedtextInput control in "Masked Input Text Input" Demo has an unexpected behavior.
    Here is the configuration I have.
      Mask: (empty)
      Text Mode: MaskedText.
      Input Behavior: Replace
      Selection On Focus: SelectAll
      Update Value Event: LostFocus.

    Replication Steps:
    1. Type ABC in text input.
    2. Select A. Copy A using Ctrl + C.
    3. Move cursor after C. Paste using Ctrl + V.

    What I expect: ABC becomes ABCA.
    Actual result: (empty)

    Please fix it! and test before releasing a new version!
    It is not the first time that we have the copy-paste error on this control. It is one of the most basic function. 

  2. Answer
    Petar Mladenov
    Petar Mladenov avatar
    2991 posts

    Posted 18 Dec 2014 Link to this post

    Hi Gong,

    Indeed this is a bug in our MaskedInputControls. We logged it in our feedback portal where you can track its status. We also updated your telerik account points.

    Just for clarification - this is not regression bug, this scenario has never worked in our previous Releases. 
    The fix will include the following - Pasting "A" next to "ABC" will produce "ABCA".

    As a workaround if this is applicable in your scenario, you can set InputBehavior="Insert". Other workaround is to override RadMaskedTextInput and its method HandlePasteNoMask.

    Petar Mladenov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top