{"action":"created","issue":{"url":"https://api.github.com/repos/vakata/jstree/issues/1192","labels_url":"https://api.github.com/repos/vakata/jstree/issues/1192/labels{/name}","comments_url":"https://api.github.com/repos/vakata/jstree/issues/1192/comments","events_url":"https://api.github.com/repos/vakata/jstree/issues/1192/events","html_url":"https://github.com/vakata/jstree/issues/1192","id":99217064,"number":1192,"title":"Searching for non-existing pattern shows all nodes instead of none","user":{"login":"Fiedzia","id":240435,"avatar_url":"https://avatars.githubusercontent.com/u/240435?v=3","gravatar_id":"","url":"https://api.github.com/users/Fiedzia","html_url":"https://github.com/Fiedzia","followers_url":"https://api.github.com/users/Fiedzia/followers","following_url":"https://api.github.com/users/Fiedzia/following{/other_user}","gists_url":"https://api.github.com/users/Fiedzia/gists{/gist_id}","starred_url":"https://api.github.com/users/Fiedzia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fiedzia/subscriptions","organizations_url":"https://api.github.com/users/Fiedzia/orgs","repos_url":"https://api.github.com/users/Fiedzia/repos","events_url":"https://api.github.com/users/Fiedzia/events{/privacy}","received_events_url":"https://api.github.com/users/Fiedzia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-05T14:28:40Z","updated_at":"2015-08-05T15:35:37Z","closed_at":"2015-08-05T15:35:37Z","body":"I'm settings show_only_matches to true. Entering phrase with matches limits\r\ndisplayed nodes, but if the phrase is not present in any node,\r\nsuddenly jstree shows everything instead of nothing."},"comment":{"url":"https://api.github.com/repos/vakata/jstree/issues/comments/128042329","html_url":"https://github.com/vakata/jstree/issues/1192#issuecomment-128042329","issue_url":"https://api.github.com/repos/vakata/jstree/issues/1192","id":128042329,"user":{"login":"vakata","id":146052,"avatar_url":"https://avatars.githubusercontent.com/u/146052?v=3","gravatar_id":"","url":"https://api.github.com/users/vakata","html_url":"https://github.com/vakata","followers_url":"https://api.github.com/users/vakata/followers","following_url":"https://api.github.com/users/vakata/following{/other_user}","gists_url":"https://api.github.com/users/vakata/gists{/gist_id}","starred_url":"https://api.github.com/users/vakata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vakata/subscriptions","organizations_url":"https://api.github.com/users/vakata/orgs","repos_url":"https://api.github.com/users/vakata/repos","events_url":"https://api.github.com/users/vakata/events{/privacy}","received_events_url":"https://api.github.com/users/vakata/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T15:35:37Z","updated_at":"2015-08-05T15:35:37Z","body":"This is the intended behavior. \r\n\r\nA few months back if there are no matches jstree would hide everything. There were a lot of bug reports about it, so now jstree will not automatically hide the tree, as it turned out to be very confusing and inappropriate for most apps.\r\n\r\nYou can still hide everything of course - use the `search.jstree` event which will be fired with an empty result set - you can display a message, hide the tree, etc.\r\n\r\nBest regards,\r\nIvan"}}