Skip to content

fix: project identifier cursor behaviour in create project modal. - #3320

Merged
sriramveeraghanta merged 1 commit into
developfrom
fix/project-identifier-cursor
Jan 5, 2024
Merged

sriramveeraghanta merged 1 commit into
developfrom
fix/project-identifier-cursor

Conversation

@prateekshourya29

@prateekshourya29 prateekshourya29 commented Jan 5, 2024 •

Copy link
Copy Markdown
Member

Problem

Steps to reproduce:

  • Type an Identifier in the Project create modal
  • Put the cursor in the beginning of the typed identifier
  • Observe - it will automatically move to end if you type anything

The cursor is behaving weird when typing happens and user puts it at the beginning of the Identifier.

Solution

The issue occured because of using toUpperCase on every change mutated the entire identifier to uppercase, causing the cursor to move unexpectedly. To solve this, I removed all toUpperCase methods to prevent unintended changes. Instead, I applied the uppercase Tailwind class to visually display the identifier in uppercase for users. And before sending it to our API endpoint, we still convert the data to uppercase, ensuring consistency without disrupting user input.

project.identifier.1.mp4

@prateekshourya29 prateekshourya29 added this to the v0.14.3-dev milestone Jan 5, 2024
@prateekshourya29 prateekshourya29 self-assigned this Jan 5, 2024
@sriramveeraghanta
sriramveeraghanta merged commit cf64c7b into develop Jan 5, 2024
@sriramveeraghanta
sriramveeraghanta deleted the fix/project-identifier-cursor branch January 5, 2024 09:08
vamsikrishnamathala pushed a commit that referenced this pull request Aug 7, 2025
stardothosting pushed a commit to stardothosting/plane-shift8 that referenced this pull request Oct 28, 2026
stardothosting pushed a commit to stardothosting/plane-shift8 that referenced this pull request Nov 16, 2026
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.

2 participants