{"action":"created","issue":{"url":"https://api.github.com/repos/sveltejs/svelte/issues/569","repository_url":"https://api.github.com/repos/sveltejs/svelte","labels_url":"https://api.github.com/repos/sveltejs/svelte/issues/569/labels{/name}","comments_url":"https://api.github.com/repos/sveltejs/svelte/issues/569/comments","events_url":"https://api.github.com/repos/sveltejs/svelte/issues/569/events","html_url":"https://github.com/sveltejs/svelte/issues/569","id":226663426,"number":569,"title":"When state changes, nested components containing conditionals jump over other elements","user":{"login":"TehShrike","id":1141869,"avatar_url":"https://avatars3.githubusercontent.com/u/1141869?v=3","gravatar_id":"","url":"https://api.github.com/users/TehShrike","html_url":"https://github.com/TehShrike","followers_url":"https://api.github.com/users/TehShrike/followers","following_url":"https://api.github.com/users/TehShrike/following{/other_user}","gists_url":"https://api.github.com/users/TehShrike/gists{/gist_id}","starred_url":"https://api.github.com/users/TehShrike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TehShrike/subscriptions","organizations_url":"https://api.github.com/users/TehShrike/orgs","repos_url":"https://api.github.com/users/TehShrike/repos","events_url":"https://api.github.com/users/TehShrike/events{/privacy}","received_events_url":"https://api.github.com/users/TehShrike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-05-05T19:01:25Z","updated_at":"2017-05-06T14:04:30Z","closed_at":null,"body":"Reproduced in 1.19.1.\r\n\r\nWhen a template contains an `if`, and inside of that there is a nested component that contains another `if`, when the state changes the elements of the nested component will jump to the end of the containing element.\r\n\r\nWords are difficult - reproduction at: https://svelte.technology/repl?version=1.19.1&gist=68736c878aaf7dfee6ab503df9259f46\r\n"},"comment":{"url":"https://api.github.com/repos/sveltejs/svelte/issues/comments/299641963","html_url":"https://github.com/sveltejs/svelte/issues/569#issuecomment-299641963","issue_url":"https://api.github.com/repos/sveltejs/svelte/issues/569","id":299641963,"user":{"login":"Conduitry","id":16696352,"avatar_url":"https://avatars2.githubusercontent.com/u/16696352?v=3","gravatar_id":"","url":"https://api.github.com/users/Conduitry","html_url":"https://github.com/Conduitry","followers_url":"https://api.github.com/users/Conduitry/followers","following_url":"https://api.github.com/users/Conduitry/following{/other_user}","gists_url":"https://api.github.com/users/Conduitry/gists{/gist_id}","starred_url":"https://api.github.com/users/Conduitry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Conduitry/subscriptions","organizations_url":"https://api.github.com/users/Conduitry/orgs","repos_url":"https://api.github.com/users/Conduitry/repos","events_url":"https://api.github.com/users/Conduitry/events{/privacy}","received_events_url":"https://api.github.com/users/Conduitry/received_events","type":"User","site_admin":false},"created_at":"2017-05-06T14:04:30Z","updated_at":"2017-05-06T14:04:30Z","body":"The `mount` method for the main fragment in the inner component is this:\r\n\r\n```javascript\r\n\t\tmount: function ( target, anchor ) {\r\n\t\t\tinsertNode( if_block_anchor, target, anchor );\r\n\t\t\tif ( if_block ) { if_block.mount( target, null ); }\r\n\t\t},\r\n```\r\n\r\nIt seems like that `.mount` should be\r\n\r\n```javascript\r\n\t\t\tif ( if_block ) { if_block.mount( target, if_block_anchor ); }\r\n```"}}
{"actor":{"display_login":"Conduitry"}}