mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3530] [bug]: Set as variable button from response pane z-index issue (visible after scrolling), Response JSON color changing #1203
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1203
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dharwishr on GitHub (Nov 10, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3530
Is there an existing issue for this?
Current behavior
Set as variable button has a z-index issue where it goes up while scrolling down in the response pane. Also, response JSON colour changes.
See screen-capture
Debian 11, Firefox/Brave
Steps to reproduce
Click on any text from response pane
Scroll down or Scroll up
Set as variable button also goes up and down according to scroll even out of scope
Environment
Production
Version
Cloud
@dantehemerson commented on GitHub (Nov 12, 2023):
Same happens in Macos version.
@ajmalmohad commented on GitHub (Dec 9, 2023):
I recreated the issue of Response JSON Color Disappearing
After some time of trying to debug, I found that this line is causing the issue.
github.com/hoppscotch/hoppscotch@23afc201a1/packages/hoppscotch-common/src/composables/codemirror.ts (L225)Just calling the function
view.value?.coordsAtPos(from)causes this behaviour, even if I don't use the values returned from the function.Eg: Even doing this causes the issue. It is just called and not used
https://github.com/hoppscotch/hoppscotch/assets/55492635/1605a9ba-87a4-4cfd-bfaf-7f245c4abda5
Any insights on this? @liyasthomas @AndrewBastin
@liyasthomas commented on GitHub (Dec 9, 2023):
Thanks for debugging and reproducing the behaviors. We'll check these instructions and look into solving these.