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

Stop edit mode when leaving edit component #3927

Merged
merged 2 commits into from May 31, 2018
Merged

Stop edit mode when leaving edit component #3927

merged 2 commits into from May 31, 2018

Conversation

fredj
Copy link
Member

@fredj fredj commented May 31, 2018

To reproduce the issue:

  • go to edit component and start drawing a polygon
  • switch to the print component

To draw interaction is still active

@@ -254,7 +252,7 @@ exports.Controller_.prototype.stopEditing = function() {
exports.Controller_.prototype.handleActiveChange_ = function(active) {
if (!active) {
if (!this.dirty) {
this.selectedEditableNode = null;
Copy link
Member Author

Choose a reason for hiding this comment

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

selectedEditableNode variable is not defined (or used) !

@fredj fredj merged commit efbb2b1 into master May 31, 2018
@fredj fredj deleted the edit_deactivate branch May 31, 2018 12:40
@sbrunner
Copy link
Member

Shouldn't be on 2.3?

@sbrunner sbrunner added this to the dummy milestone Jun 1, 2018
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.

None yet

3 participants