mapbox / mapbox/mapbox-gl-draw

How to stop stopPropagation for a single click

Open
#1,098 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged needs information
Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
8d 9h
Merged PRs (30d)
5

Description

**mapbox-gl-js version**:2.0.0
**mapbox-gl-draw version**:1.2.0

### Steps to Trigger Behavior

1. already have many layers on map, for displaying polygons
2. enter mapbox gl draw
3. click on map to create a point, if such point is on another layer, it will automatically quit drawing mode and select that layer

### Expected Behavior
Diable event propagation for click.
### Actual Behavior

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 behavior with mapbox-gl-js 2.0.0 and mapbox-gl-draw 1.2.0 using the listed steps, especially a point placed over an existing polygon layer. Trace click handling while drawing; done when creating the point no longer exits drawing mode or selects the underlying layer.

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.