[FIXED] [#1588] [4.6.0] InputMask's key events gives error

  1. #1

    [FIXED] [#1588] [4.6.0] InputMask's key events gives error

    InputMask's onKeyDown onKeyPress javascript functions gives error
    you can see it in examples page (https://examples4.ext.net/#/Form/TextField/InputMask/), just enter some text on any field and see error in console
    Last edited by fabricio.murta; Jun 13, 2018 at 10:39 PM.
  2. #2
    We recently upgraded to EXT 4.5.1 and also started receiving complaints about the input masks not working.

    I have also tested the samples page and on the following browsers (IE, Edge, Chrome and Firefox) the component is not working.
    The behavior is something like, adding a blank space character to the back of the input text, eg. I would type 1234 and the TextField will show a value of 123_ on a field where the code looks like this:
          <ext:TextField ID="txtPin" runat="server" EmptyText="0000" FieldLabel="Pin">
            <Plugins>
              <ext:InputMask runat="server" ID="maskPin" Mask="9999" />
            </Plugins>
          </ext:TextField>
    As the original poster indicated, even the Examples page has the same flaw. (https://examples4.ext.net/#/Form/TextField/InputMask/)

    Replacing the plugin with the native version did give me a good workaround for now
            <Plugins>
              <ext:InputMask runat="server" ID="maskPin" Mask="9999" />
            </Plugins>
    https://examples4.ext.net/#/Form/Tex...utMask_Native/
          <ext:TextField ID="txtPatientPin" runat="server" EmptyText="0000" FieldLabel="Pin">
              <InputMask Pattern="9999" />
          </ext:TextField>
    Last edited by ampathdev; Jun 07, 2018 at 8:50 AM.
  3. #3
    Hello @ampathdev!

    Thanks for the heads up, we really missed this straightforward bug report... Sorry @unicorn64 for overlooking your report!

    We've logged it under #1588 and will post an update here as soon as the issue is fixed.

    Also, thanks for sharing the alternative that worked for you. Indeed, our implementation of the InputMask came much earlier than ExtJS's, and when they introduced it, we just kept both implementation so developers could choose between them. Although they basically do the same thing, there are some differences that may be missed by who uses the older one, and some features that may be desired by the new (native) one. And also for backwards compatibility.
    Fabrício Murta
    Developer & Support Expert
  4. #4
    Hello!

    The issue has been fixed in Ext.NET sources. It will be publicly available on next Ext.NET release, which at the time of the writing of this response was supposed to be 4.6.0.

    Thanks again for reporting the issue!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [OPEN] [#1193] [3.2.1] DateField vs InputMask
    By RaphaelSaldanha in forum Bugs
    Replies: 5
    Last Post: Dec 22, 2015, 11:01 AM
  2. [CLOSED] InputMask JS error
    By stratadev in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 13, 2013, 4:27 PM
  3. Replies: 6
    Last Post: Jan 18, 2013, 4:22 AM
  4. Replies: 2
    Last Post: Jul 29, 2009, 1:57 PM
  5. [CLOSED] Ajax Events Error
    By jachnicky in forum 1.x Help
    Replies: 3
    Last Post: Dec 01, 2008, 9:27 PM

Posting Permissions