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

Place text cursor in title field in template based issue after specified default value #25055

Closed
sebthom opened this issue Jun 2, 2023 · 0 comments · Fixed by #30090
Closed
Labels
topic/ui Change the appearance of the Gitea UI type/bug

Comments

@sebthom
Copy link

sebthom commented Jun 2, 2023

Description

When adding a default value for the title in an issue template, the text cursor is set to the beginning of title's input instead of the end.

name: 🐞 Bug Report
about: File a bug report
title: "[Bug] "
labels:
- Type/Bug

Screenshots

Current:
image

Preferred:
image

Gitea Version

1.19.3

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

No response

Browser Version

firefox

@sebthom sebthom added type/bug topic/ui Change the appearance of the Gitea UI labels Jun 2, 2023
lunny pushed a commit that referenced this issue Mar 27, 2024
DennisRasey pushed a commit to DennisRasey/forgejo that referenced this issue Mar 30, 2024
…nd of the text. (#30090)

Fix:  [#25055](go-gitea/gitea#25055)

Before

![image](https://github.com/go-gitea/gitea/assets/37935145/1b89cd7b-4fa3-49aa-9b5e-a8413add436e)

After

![image](https://github.com/go-gitea/gitea/assets/37935145/fa808f8d-d3ce-4245-a4fe-dd0282ba3fdf)

ps: I've noticed that we are gradually replacing jQuery, so I didn't use jQuery here.
(cherry picked from commit 1261dd6742fb7095e51c173ca4641477d81a3634)
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jun 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant