{"action":"opened","issue":{"url":"https://api.github.com/repos/josdejong/jsoneditor/issues/203","labels_url":"https://api.github.com/repos/josdejong/jsoneditor/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/josdejong/jsoneditor/issues/203/comments","events_url":"https://api.github.com/repos/josdejong/jsoneditor/issues/203/events","html_url":"https://github.com/josdejong/jsoneditor/issues/203","id":92436280,"number":203,"title":"Expand Node when dom.field is clicked (no only when dom.expand is clicked)","user":{"login":"halt-hammerzeit","id":477167,"avatar_url":"https://avatars.githubusercontent.com/u/477167?v=3","gravatar_id":"","url":"https://api.github.com/users/halt-hammerzeit","html_url":"https://github.com/halt-hammerzeit","followers_url":"https://api.github.com/users/halt-hammerzeit/followers","following_url":"https://api.github.com/users/halt-hammerzeit/following{/other_user}","gists_url":"https://api.github.com/users/halt-hammerzeit/gists{/gist_id}","starred_url":"https://api.github.com/users/halt-hammerzeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halt-hammerzeit/subscriptions","organizations_url":"https://api.github.com/users/halt-hammerzeit/orgs","repos_url":"https://api.github.com/users/halt-hammerzeit/repos","events_url":"https://api.github.com/users/halt-hammerzeit/events{/privacy}","received_events_url":"https://api.github.com/users/halt-hammerzeit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-01T17:06:13Z","updated_at":"2015-07-01T17:06:13Z","closed_at":null,"body":"The solution would be simple:\r\n\r\n```\r\nNode.prototype.onEvent = function (event) {\r\n  ...\r\n  if (type == 'click' && target == dom.expand) {\r\n    ...\r\n  }\r\n}\r\n```\r\n\r\nbecomes this:\r\n\r\n```\r\nNode.prototype.onEvent = function (event) {\r\n  ...\r\n  if (type == 'click' && (target == dom.expand || (target == dom.field && this.editor.options.expand_on_label_click))) {\r\n    ...\r\n  }\r\n}\r\n```"}}