{"action":"created","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/11621","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/11621/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/11621/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/11621/events","html_url":"https://github.com/WordPress/gutenberg/issues/11621","id":378709100,"node_id":"MDU6SXNzdWUzNzg3MDkxMDA=","number":11621,"title":"InnerBlocks shows inline-image block, when not allowed","user":{"login":"harmwinnemuller","id":42736463,"node_id":"MDQ6VXNlcjQyNzM2NDYz","avatar_url":"https://avatars3.githubusercontent.com/u/42736463?v=4","gravatar_id":"","url":"https://api.github.com/users/harmwinnemuller","html_url":"https://github.com/harmwinnemuller","followers_url":"https://api.github.com/users/harmwinnemuller/followers","following_url":"https://api.github.com/users/harmwinnemuller/following{/other_user}","gists_url":"https://api.github.com/users/harmwinnemuller/gists{/gist_id}","starred_url":"https://api.github.com/users/harmwinnemuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harmwinnemuller/subscriptions","organizations_url":"https://api.github.com/users/harmwinnemuller/orgs","repos_url":"https://api.github.com/users/harmwinnemuller/repos","events_url":"https://api.github.com/users/harmwinnemuller/events{/privacy}","received_events_url":"https://api.github.com/users/harmwinnemuller/received_events","type":"User","site_admin":false},"labels":[{"id":630674253,"node_id":"MDU6TGFiZWw2MzA2NzQyNTM=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Status]%20Needs%20More%20Info","name":"[Status] Needs More Info","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-08T12:25:32Z","updated_at":"2018-11-14T15:00:58Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nWhen a new block is inserted with the 'InnerBlock' component, and 'allowedBlocks' is used, the 'Inline-Image' block still shows, even when it's not allowed.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behaviour:\r\n1. Go to the Gutenberg text-editor\r\n2. Add a block which uses InnerBlocks (with specific blocks inside)\r\n3. Add an InnerBlock\r\n4. You can now see 'inline-image', even if it should not appear.\r\n5. Save the post and reload the page, now the 'inline-image' option is gone.\r\n\r\n**Expected behaviour**\r\nThe 'allowedBlocks' should appear, but if 'inline-image' is not allowed, it should not appear.\r\n\r\n**Screenshots**\r\nBefore saving the post:\r\n<img width=\"806\" alt=\"screenshot 2018-11-08 at 11 07 33\" src=\"https://user-images.githubusercontent.com/42736463/48198415-16dd5a80-e359-11e8-91a0-6117fa275ef9.png\">\r\n\r\nAfter saving the post and reloading the page:\r\n<img width=\"763\" alt=\"screenshot 2018-11-08 at 11 07 57\" src=\"https://user-images.githubusercontent.com/42736463/48198433-2bb9ee00-e359-11e8-985b-e8624ed96d26.png\">\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: MacOS Mojave\r\n - Browser: Chrome\r\n - Version: Chrome version 70.0.3538.77 (Official Build) (64-bit)\r\n\r\n**Additional context**\r\nGutenberg 4.2.0"},"comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments/438691928","html_url":"https://github.com/WordPress/gutenberg/issues/11621#issuecomment-438691928","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/11621","id":438691928,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODY5MTkyOA==","user":{"login":"harmwinnemuller","id":42736463,"node_id":"MDQ6VXNlcjQyNzM2NDYz","avatar_url":"https://avatars3.githubusercontent.com/u/42736463?v=4","gravatar_id":"","url":"https://api.github.com/users/harmwinnemuller","html_url":"https://github.com/harmwinnemuller","followers_url":"https://api.github.com/users/harmwinnemuller/followers","following_url":"https://api.github.com/users/harmwinnemuller/following{/other_user}","gists_url":"https://api.github.com/users/harmwinnemuller/gists{/gist_id}","starred_url":"https://api.github.com/users/harmwinnemuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harmwinnemuller/subscriptions","organizations_url":"https://api.github.com/users/harmwinnemuller/orgs","repos_url":"https://api.github.com/users/harmwinnemuller/repos","events_url":"https://api.github.com/users/harmwinnemuller/events{/privacy}","received_events_url":"https://api.github.com/users/harmwinnemuller/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T15:00:58Z","updated_at":"2018-11-14T15:00:58Z","author_association":"NONE","body":"Yes it's when I build a custom block with InnerBlocks. I use 'allowedBlocks inside the edit function: '<InnerBlocks allowedBlocks={ [ 'core/paragraph' ] }/>' .\r\nBut when I use the insert block function it will also show the inline-image block:\r\n<img width=\"412\" alt=\"screenshot 2018-11-14 at 16 00 27\" src=\"https://user-images.githubusercontent.com/42736463/48490781-75f21200-e826-11e8-842c-3b3b17ee1117.png\">\r\n"}}
{"actor":{"display_login":"harmwinnemuller"}}