processing / processing/p5.js-web-editor

color icon next to hex code inside of object can be duplicated

Open
#2,027 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area: Dependencies Area:Editor Bug Priority:Low
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

Details about the bug:
  • p5.js version: 1.4
  • Web browser and version: Google Chrome | 100.0.4896.133
  • Operating System: Chromium
  • Steps to reproduce this:
    type this:
let h = {              //varible name does not matter
    l:"#678765"    //color does not matter
}
    then the little icon will apear.
    put the mouse next to the icon
    then press delete, this will delete the quotation mark
    then press enter, the icon will duplicate
actual bug example

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in the p5.js Editor with the provided object-literal snippet in Chrome: place the cursor by the color icon, delete the quote, and press Enter. Trace the editor behavior that renders color icons inside objects; done means the icon remains single after these edits and the reproduction no longer duplicates it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.