postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

Drag-selecting doesn't work correctly if URL field isn't focused

Open distinctdan opened this issue 7 months ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

The cursor position jumps when focusing the Request URL field. This is messing up drag-selecting if the field isn't already focused, causing the wrong thing to be selected. Sometimes I want to select part of the URL, then start typing to replace it, and this causes the wrong thing to be replaced, which is very frustrating.

Steps To Reproduce

  1. Open a request with a URL
  2. Click anywhere else in the app so that the URL field is unfocused.
  3. Click-and-drag to try and select part of the URL.
  4. The wrong text will be selected. This appears to be stateful and might be using the previous cursor location in the field. Please see the attached video and notice how the text selection doesn't match the cursor's starting position.

Screenshots or Videos

https://github.com/user-attachments/assets/e65a9a08-6786-4dbb-8ab1-c59c8f235d26

Operating System

macOS

Postman Version

10.24.25

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

distinctdan avatar Jul 12 '24 21:07 distinctdan