NotASithLord / NotASithLord/peerd

Browser scripting clicks activate targets twice

Open
#446 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
410
Forks
45
Avg merge
11d 5h
Merged PRs (30d)
1

Description

The scripting fallback dispatches a MouseEvent click and then calls HTMLElement.click(). One tool action can submit a form or toggle a control twice.

Expected:

  • One tool click causes one activation.
  • The event keeps target coordinates and supports SVG targets.

Scope:

  • Remove the second native click.
  • Keep one centered synthetic click.
  • Add browser regression tests for one checkbox toggle and one form submit.

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

Start at the browser scripting fallback that dispatches the synthetic MouseEvent click and then calls HTMLElement.click(). Add browser regression tests covering one checkbox toggle and one form submission, preserving target coordinates and SVG support; done means each tool click causes exactly one activation.

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
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.