{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/249","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/249/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/249/events","html_url":"https://github.com/mapbox/mapbox-gl-draw/issues/249","id":138580899,"number":249,"title":"'interactive' option is broken","user":{"login":"kiRach","id":1084659,"avatar_url":"https://avatars.githubusercontent.com/u/1084659?v=3","gravatar_id":"","url":"https://api.github.com/users/kiRach","html_url":"https://github.com/kiRach","followers_url":"https://api.github.com/users/kiRach/followers","following_url":"https://api.github.com/users/kiRach/following{/other_user}","gists_url":"https://api.github.com/users/kiRach/gists{/gist_id}","starred_url":"https://api.github.com/users/kiRach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiRach/subscriptions","organizations_url":"https://api.github.com/users/kiRach/orgs","repos_url":"https://api.github.com/users/kiRach/repos","events_url":"https://api.github.com/users/kiRach/events{/privacy}","received_events_url":"https://api.github.com/users/kiRach/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-04T20:38:24Z","updated_at":"2016-03-09T20:25:00Z","closed_at":null,"body":"As it stated in documentation:\r\n\r\noption | values | function\r\n--- | --- | ---\r\ninteractive | boolean | Keep all features permanently in selected mode - default: `false`\r\n\r\nBut it doesn't work. When I create mapbox.Draw with `interactive: true` - I still can leave selected mode if I click somewhere outside of shape."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/comments/194491761","html_url":"https://github.com/mapbox/mapbox-gl-draw/issues/249#issuecomment-194491761","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/249","id":194491761,"user":{"login":"mcwhittemore","id":1551510,"avatar_url":"https://avatars.githubusercontent.com/u/1551510?v=3","gravatar_id":"","url":"https://api.github.com/users/mcwhittemore","html_url":"https://github.com/mcwhittemore","followers_url":"https://api.github.com/users/mcwhittemore/followers","following_url":"https://api.github.com/users/mcwhittemore/following{/other_user}","gists_url":"https://api.github.com/users/mcwhittemore/gists{/gist_id}","starred_url":"https://api.github.com/users/mcwhittemore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcwhittemore/subscriptions","organizations_url":"https://api.github.com/users/mcwhittemore/orgs","repos_url":"https://api.github.com/users/mcwhittemore/repos","events_url":"https://api.github.com/users/mcwhittemore/events{/privacy}","received_events_url":"https://api.github.com/users/mcwhittemore/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T20:25:00Z","updated_at":"2016-03-09T20:25:00Z","body":"Thanks - one way to do this without some sort of config in gl-draw is to have an event handler on draw.select.end that reselects the feature if it gets unselected. Does this work for you? My fear here would be that there could be a flicker between styles.\r\n\r\nI'm trying to drop extra features that complicate the code so if we can find a good way to achieve this that would be great."}}