Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: the row number counting logic of the textarea #1359

Closed
wants to merge 1 commit into from

Conversation

yanCode
Copy link
Contributor

@yanCode yanCode commented May 9, 2023

image

as in the snapshot, if you input some content (in my example i used 111 ) with a line breaker for each line, you can find the row num of the textarea increases too many, resulting a tall blank area under the cursor point. I checked the logic, finding actually it only needs to add 1 to the total row number only if the user's input is ending with \n.

@Yidadaa
Copy link
Collaborator

Yidadaa commented May 9, 2023

This pr introduces a new bug, single Enter should grow the textarea.

@Yidadaa
Copy link
Collaborator

Yidadaa commented May 9, 2023

image

@Yidadaa
Copy link
Collaborator

Yidadaa commented May 9, 2023

I will submit a pr later to fix it.

@Yidadaa Yidadaa closed this May 9, 2023
Yidadaa added a commit that referenced this pull request May 9, 2023
Yidadaa added a commit that referenced this pull request May 9, 2023
feat: #1055, #444 and fix #1359 hot key to switch chat and allow to disable gpt-4
@yanCode
Copy link
Contributor Author

yanCode commented May 10, 2023

hope my new PR can address the issues in both my previous PR and yours.

Endlessworld pushed a commit to Endlessworld/ChatGPT-Next-Web that referenced this pull request May 17, 2023
Endlessworld pushed a commit to Endlessworld/ChatGPT-Next-Web that referenced this pull request May 17, 2023
jinker pushed a commit to jinker/ChatGPT-Next-Web that referenced this pull request Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants