Number input content disappears upon clicking elsewhere

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lj4353
    Senior Member
    • Nov 2023
    • 161

    #1

    Number input content disappears upon clicking elsewhere

    When I complete typing and click somewhere else, the content I entered disappears automatically, preventing me from inputting successfully.


    This issue is also occurring on the official website's demo. Please explain why this is happening. I would greatly appreciate your assistance. Thank you very much.
    EspoCRM – Open Source CRM application.

    Click image for larger version  Name:	image.png Views:	8 Size:	85.4 KB ID:	100559
    Click image for larger version  Name:	image.png Views:	5 Size:	93.4 KB ID:	100560
    Last edited by yuri; 12-10-2023, 09:25 AM.
  • lj4353
    Senior Member
    • Nov 2023
    • 161

    #2
    Click image for larger version

Name:	image.png
Views:	246
Size:	39.8 KB
ID:	100562​I've noticed that I can enter text normally when using an English input method. However, when I switch to input methods from other countries to enter numbers, it doesn't work properly, which is quite strange. I need help with this issue.

    Comment

    • lj4353
      Senior Member
      • Nov 2023
      • 161

      #3
      ​I've noticed that I can enter text normally when using an English input method. However, when I switch to input methods from other countries to enter numbers, it doesn't work properly, which is quite strange. I need help with this issue.

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9800

        #4
        Related:

        Current behavior On MS Windows 10.0.18363.1679 If user has Chinese Keyboard Layout and Input Mode is Chinese -> after input a number the field cleared after losing focus. Expected behavior Filed is...


        Maybe related:

        Version 4.6.0 Current behavior When inputting numbers 0-9 in Japanese IME mode, the Autonumeric-managed elements doesn't recognize them and prevent them from being inputted. Expected behavior I'm e...
        Last edited by yuri; 12-11-2023, 02:14 PM.

        Comment

        • yuri
          EspoCRM product developer
          • Mar 2014
          • 9800

          #5
          Could not yet reproduce. On Windows 10, with Chinese simplified and Chinese Traditional. Chrome and Firefox. IME is enabled.

          Maybe depends on the IME version.
          Last edited by yuri; 12-10-2023, 10:13 AM.

          Comment


          • lj4353
            lj4353 commented
            Editing a comment
            Yuri, thank you for your response. I've tried their method, but I'd prefer to handle this issue in the code, as some users may not know how to set it up correctly. Using the Chinese 123 input on an Apple phone, the numbers still do not display. I attempted to modify the judgement from `[\-]?[0-9]*` to `[\-]?[0-9\uFF10-\uFF19]*`, but it didn't work. I would greatly appreciate any additional help you can provide.

            Last edited by lj4353; 12-10-2023, 11:40 AM.
        • yuri
          EspoCRM product developer
          • Mar 2014
          • 9800

          #6
          To be able to come up with a fix I first need to reproduce it.

          Note that you can't just modify source in JS files as they are bundled. You need to do it in the repository and run build.

          Comment


          • lj4353
            lj4353 commented
            Editing a comment
            I've found that everything displays correctly on Windows 10, but there are display issues on Windows 11.
        • yuri
          EspoCRM product developer
          • Mar 2014
          • 9800

          #7
          Maybe this can help for Windows 11: https://support.microsoft.com/en-us/...icrosoft%20IME.

          Comment


          • lj4353
            lj4353 commented
            Editing a comment
            Thank you for your advice. I used an older version of the IME following your suggestion, and this resolved the issue. However, I think regular users might struggle to configure the IME version correctly, and most overseas users may not be able to input correctly, especially on mobile devices. I sincerely hope that the next version of EspoCRM can fundamentally improve this feature. EspoCRM is a great product and meets many of my needs.
        • yuri
          EspoCRM product developer
          • Mar 2014
          • 9800

          #8
          It's unlikely to be fixed in the v8.1. The issue is with the library we use and it has not been fixed for a few years. Or maybe it's more proper to say that it's the issue in the IME. Not sure.

          If anyone has a suggestion how to reliably fix it, it will be appreciated.

          I created an issue on GitHub: https://github.com/espocrm/espocrm/issues/2921
          Last edited by yuri; 12-11-2023, 04:22 PM.

          Comment

          Working...