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

Trigger featureChanged on feature props change #1196

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

wyozi
Copy link
Contributor

@wyozi wyozi commented Aug 22, 2023

fixes #1122

@stepankuzmin stepankuzmin merged commit 357ede0 into mapbox:main Aug 22, 2023
1 check passed
@wyozi wyozi deleted the wyozi-patch-1 branch August 22, 2023 11:09
@stepankuzmin stepankuzmin mentioned this pull request Sep 21, 2023
petermoz pushed a commit to petermoz/mapbox-gl-draw that referenced this pull request Oct 4, 2023
mapbox#1196 intended to add a call to
`featureChanged` any time a feature was `add()`ed with modified
properties, however it has a bug in that the check came after assignment.

A simpler fix would be to move the assignment inside the `if()` body,
but that could break other code that depended on referential equality
after calling `add()`.
danielsippel added a commit to danielsippel/mapbox-gl-draw that referenced this pull request Apr 17, 2024
danielsippel added a commit to danielsippel/mapbox-gl-draw that referenced this pull request Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Existing features don't get rerendered on draw.set
2 participants