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

Editors change wrong template literal #2304

Open
MacaylaMarvelous81 opened this issue Sep 6, 2024 · 0 comments
Open

Editors change wrong template literal #2304

MacaylaMarvelous81 opened this issue Sep 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@MacaylaMarvelous81
Copy link
Contributor

Describe the bug
Sometimes, when using an editor, the wrong template literal is edited. I've replicated this with the map editor as well as the color selector.

To Reproduce
Steps to reproduce the behavior:

  1. Change a map or color using an editor (you may need to make multiple changes/click multiple times)
  2. Close the editor and check for incorrect changes
    I've experienced this bug in Safari on MacOS and Chrome on ChromeOS.

Expected behavior
The correct map or color is changed.

Actual behavior
The map or color overwrites another template literal.

Screenshots

Minimal reproducible example:

Screen.Recording.2024-09-06.at.7.09.48.AM.mov

In this video the color a overwrites map b.

const player = "p"

setLegend(
  [ player, bitmap`
................
................
.......000......
.......0.0......
......0..0......
......0...0.0...
....0003.30.0...
....0.0...000...
....0.05550.....
......0...0.....
.....0....0.....
.....0...0......
......000.......
......0.0.......
.....00.00......
................` ]
)

const a = color``
const b = map`
..........
ppppp.....
.....pp...
.....pp...
.....p....
...ppp....
..........
..........`

Sprig snapshot: https://sprig.hackclub.com/share/WqpImishd1BOavNdMO0C

Other:

Screen.Recording.2024-09-06.at.6.52.56.AM.mov

In this video a color overwrites a map, and then a different map gets edited than the one that was clicked on.
Sprig snapshot: https://sprig.hackclub.com/share/Ug8ukF5tCv8ZowXttYeb

@MacaylaMarvelous81 MacaylaMarvelous81 added the bug Something isn't working label Sep 6, 2024
@DevIos01 DevIos01 self-assigned this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants