Chat input disappears when pressing Up/Down arrow keys #6888

Closed
opened 2026-02-21 18:17:49 -05:00 by yindo · 3 comments
Owner

Originally created by @zolgear on GitHub (Nov 22, 2024).

Originally assigned to: @crazywoola on GitHub.

Self Checks

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

Dify version

0.11.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Pressing the Up or Down arrow keys in Chat the textarea.

0.11.2 and later

refs #10641, #10793

✔️ Expected Behavior

The cursor moves within the input area.

Actual Behavior

Causes the chat input to delete or show the previous input once.

Originally created by @zolgear on GitHub (Nov 22, 2024). Originally assigned to: @crazywoola on GitHub. ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.11.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Pressing the Up or Down arrow keys in Chat the textarea. 0.11.2 and later refs #10641, #10793 ### ✔️ Expected Behavior The cursor moves within the input area. ### ❌ Actual Behavior Causes the chat input to delete or show the previous input once.
yindo added the 🐞 bug label 2026-02-21 18:17:49 -05:00
yindo closed this issue 2026-02-21 18:17:49 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 22, 2024):

The chat input disappears when pressing the Up or Down arrow keys in the self-hosted version 0.11.2 of Dify because the code is designed to navigate through the input history. When you press the Down arrow key and the current index is at the last element of the history, the input box is cleared by setting the query to an empty string. This behavior is intentional to clear the input when navigating past the last history entry [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Nov 22, 2024): <!-- Answer --> The chat input disappears when pressing the Up or Down arrow keys in the self-hosted version 0.11.2 of Dify because the code is designed to navigate through the input history. When you press the Down arrow key and the current index is at the last element of the history, the input box is cleared by setting the query to an empty string. This behavior is intentional to clear the input when navigating past the last history entry <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/base/chat/chat/chat-input-area/index.tsx)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Nov 22, 2024):

@dajianguo Any thoughts?

@crazywoola commented on GitHub (Nov 22, 2024): @dajianguo Any thoughts?
Author
Owner

@zolgear commented on GitHub (Nov 22, 2024):

Thanks!

@zolgear commented on GitHub (Nov 22, 2024): Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6888