[GH-ISSUE #2195] [bug]: selecting text with mouse causes modal to close #748

Closed
opened 2026-03-16 17:00:40 +03:00 by kerem · 2 comments
Owner

Originally created by @H4kt on GitHub (Mar 23, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2195

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

While selecting text in modal save window if cursor ends up outside of modal before mouse up modal window will close upon mouse up event. Sometimes I really like to select text in inputs using mouse instead of just pressing CTRL+A, so this issue is really annoying. Video

Steps to reproduce

  1. Open any modal window (e.g. save request)
  2. Select text inside "Request name" field using your mouse
  3. Without releasing your mouse button move your cursor outside of the modal window
  4. Release the mouse button

Current behavior: modal window closes
Expected behavior: modal window should stay opened with text being selected

Environment

Production

Version

Cloud

Originally created by @H4kt on GitHub (Mar 23, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2195 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior While selecting text in modal save window if cursor ends up outside of modal before mouse up modal window will close upon mouse up event. Sometimes I really like to select text in inputs using mouse instead of just pressing `CTRL+A`, so this issue is really annoying. [Video](https://user-images.githubusercontent.com/50774419/159767367-e19af01c-1366-4540-bef3-a5c5897089a0.mp4) ### Steps to reproduce 1. Open any modal window (e.g. save request) 2. Select text inside "Request name" field using your mouse 3. Without releasing your mouse button move your cursor outside of the modal window 4. Release the mouse button Current behavior: modal window closes Expected behavior: modal window should stay opened with text being selected ### Environment Production ### Version Cloud
kerem 2026-03-16 17:00:40 +03:00
Author
Owner

@AndrewBastin commented on GitHub (Mar 23, 2022):

Thank you for the submission @H4kt. We will look into this.

cc: @liyasthomas

<!-- gh-comment-id:1076804005 --> @AndrewBastin commented on GitHub (Mar 23, 2022): Thank you for the submission @H4kt. We will look into this. cc: @liyasthomas
Author
Owner

@H4kt commented on GitHub (Mar 24, 2022):

Just gave it a test. Works fine.
Thank you ❤️

<!-- gh-comment-id:1077460880 --> @H4kt commented on GitHub (Mar 24, 2022): Just gave it a test. Works fine. Thank you ❤️
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#748
No description provided.