dify icon indicating copy to clipboard operation
dify copied to clipboard

Cannot input Chinese character in the Chat Input TextArea of Preview Panel (Ubuntu 20.04LTS Firefox136.0, IBus_libpinyin1.11.1)

Open justincui opened this issue 9 months ago • 1 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Environment: Ubuntu 20.04LTS

Backend: podman-compose version 1.3.0 podman version 3.4.2

Frontend: Firefox136.0, ibus_libpinyin1.11.1

Reproduce:

  1. configure the env to change port 80 to 8080, 443 to 8443 for rootless mode.
  2. use podman-compose up -d to start the docker container
  3. use firefox to open http://localhost:8080
  4. configure model provider
  5. create a chatbot application
  6. try the chatbot in the Preview Panel
  7. in the Chat Input TextArea of Preview Panel, when you try to type in any Chinese character, the prompt bar for candidate Chinese characters appears and disappears immediately. If you type 1 quickly, you can see the first candidate Chinese character is inputted.
  8. All other text areas in Dify can input Chinese characters with IBus IME without any issue. Only the Preview Input has problem.

✔️ Expected Behavior

Chinese character candidate bar shall not disappear before I type the number to choose.

❌ Actual Behavior

Chinese character candidate bar immediately disappear after it is shown when I key down a key for example 'a'.

Image

justincui avatar Mar 07 '25 17:03 justincui

Hello! I can't reproduce this problem Operating system: mac os 15 Browser: Edge 134 Code branch: latest main branch

@crazywoola @justincui

Image

Perfecto23 avatar Mar 30 '25 07:03 Perfecto23

Hi, @justincui. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You reported a bug on Ubuntu 20.04LTS using Firefox 136.0 where Chinese characters cannot be inputted in the Chat Input TextArea of the Preview Panel.
  • The candidate bar disappears immediately, causing the issue.
  • This problem does not occur in other text areas of the application.
  • Perfecto23 attempted to reproduce the issue on macOS 15 using Edge 134 but was unable to replicate it, suggesting it might be specific to your environment.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of the Dify repository by commenting here to keep the discussion open.
  • If no further updates are provided, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Apr 30 '25 16:04 dosubot[bot]

Oh, I encounter the same situation. My Linux info:

  1. firefox: 115.5.0esr
  2. dify verson:1.0.1
  3. ibus-libpinyin: 1.15.3

I also wanna know how to fix the similar issue. And the deep reason is the compatibility among the components

vans8800 avatar Jun 21 '25 06:06 vans8800

Big News: Updating dify-web to 1.2.0 is enough to fix the previous problem.

vans8800 avatar Jun 25 '25 06:06 vans8800