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

Unregister events properly inside AttributeTable component #405

Merged

Conversation

sronveaux
Copy link
Collaborator

This PR cleanly unregisters the two events that are used inside the AttributeTable component.

One event is called when a feature is selected on the map. This was still registered after the component was closed...

The second is called when the 'onchange' event of the selected layer is fired. This was not cleanly unregistered when changing layers, so selecting a feature of the previously selected layer continued to fire this event and stayed even after the component was closed.

Should be fixed now...

@sronveaux
Copy link
Collaborator Author

Tests now pass thanks to @chrismayer's celerity with #406 !

Copy link
Collaborator

@chrismayer chrismayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this improvement @sronveaux 👍

Please merge at will...

@sronveaux sronveaux merged commit 3079b94 into wegue-oss:master Jun 20, 2024
1 check passed
@sronveaux sronveaux deleted the attribute-table-unregister-events branch June 20, 2024 13:16
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.

2 participants