WjInputDateTime does not receive a value when confirmed with the Enter key

Posted by: nguyenvansy091201 on 28 June 2024, 10:06 am EST

    • Post Options:
    • Link

    Posted 28 June 2024, 10:06 am EST - Updated 28 June 2024, 11:11 am EST

    When you enter a specifyable date and confirm it with the Enter key, the entered date remains unconfirmed

    Occurrence condition: The date and time selection box is displayed in dropdown form as shown below

    Version behavior does not occur on 5.20212.812 and occurred on 5.20232.939

  • Posted 2 July 2024, 2:32 am EST

    Hi,

    It seems like an unexpected behavior in InputDateTime control, so we have escalated it to the dev team for further investigation with internal tracking ID- WJM-34250. We will update you when we have an update from the dev team.

    Meanwhile here is a workaround that you can use

     //workaround
        (input as any).InputDate.prototype._keydown = function (t) {
          if (t.keyCode === wijmo.Key.Enter) {
            this._commitText(); // commit the text
            this.isDroppedDown = false; // close the drop-down
          }
        };

    Here is a sample for your reference https://stackblitz.com/edit/angular-stjdwa?file=src%2Fapp%2Fapp.component.ts

    Regards

  • Posted 1 October 2024, 7:07 am EST

    Hi,

    This issue has been fixed in the latest version of Wijmo, i.e. 5.20242.21. You can verify it in the following sample - https://stackblitz.com/edit/angular-pssp8w?file=src%2Fapp%2Fapp.component.ts

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels