{"action":"created","issue":{"url":"https://api.github.com/repos/jackmellis/vue-hoc/issues/18","repository_url":"https://api.github.com/repos/jackmellis/vue-hoc","labels_url":"https://api.github.com/repos/jackmellis/vue-hoc/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/jackmellis/vue-hoc/issues/18/comments","events_url":"https://api.github.com/repos/jackmellis/vue-hoc/issues/18/events","html_url":"https://github.com/jackmellis/vue-hoc/issues/18","id":308898276,"number":18,"title":"Extra <template> tags","user":{"login":"titouancreach","id":3995719,"avatar_url":"https://avatars1.githubusercontent.com/u/3995719?v=4","gravatar_id":"","url":"https://api.github.com/users/titouancreach","html_url":"https://github.com/titouancreach","followers_url":"https://api.github.com/users/titouancreach/followers","following_url":"https://api.github.com/users/titouancreach/following{/other_user}","gists_url":"https://api.github.com/users/titouancreach/gists{/gist_id}","starred_url":"https://api.github.com/users/titouancreach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titouancreach/subscriptions","organizations_url":"https://api.github.com/users/titouancreach/orgs","repos_url":"https://api.github.com/users/titouancreach/repos","events_url":"https://api.github.com/users/titouancreach/events{/privacy}","received_events_url":"https://api.github.com/users/titouancreach/received_events","type":"User","site_admin":false},"labels":[{"id":670540295,"url":"https://api.github.com/repos/jackmellis/vue-hoc/labels/bug","name":"bug","color":"ee0701","default":true},{"id":897769533,"url":"https://api.github.com/repos/jackmellis/vue-hoc/labels/vue-hoc","name":"vue-hoc","color":"ed80c8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jackmellis/vue-hoc/milestones/5","html_url":"https://github.com/jackmellis/vue-hoc/milestone/5","labels_url":"https://api.github.com/repos/jackmellis/vue-hoc/milestones/5/labels","id":3222857,"number":5,"title":"0.3.2","description":null,"creator":{"login":"jackmellis","id":12736176,"avatar_url":"https://avatars1.githubusercontent.com/u/12736176?v=4","gravatar_id":"","url":"https://api.github.com/users/jackmellis","html_url":"https://github.com/jackmellis","followers_url":"https://api.github.com/users/jackmellis/followers","following_url":"https://api.github.com/users/jackmellis/following{/other_user}","gists_url":"https://api.github.com/users/jackmellis/gists{/gist_id}","starred_url":"https://api.github.com/users/jackmellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackmellis/subscriptions","organizations_url":"https://api.github.com/users/jackmellis/orgs","repos_url":"https://api.github.com/users/jackmellis/repos","events_url":"https://api.github.com/users/jackmellis/events{/privacy}","received_events_url":"https://api.github.com/users/jackmellis/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2018-03-27T18:00:26Z","updated_at":"2018-03-27T18:00:37Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2018-03-27T09:50:59Z","updated_at":"2018-04-18T07:41:05Z","closed_at":null,"author_association":"NONE","body":"I wish to make a withStyle HOC component to style my components. \r\n\r\n```javascript\r\nimport { createHOCc } from 'vue-hoc';\r\n\r\nexport function withStyle(style) {\r\n  return createHOCc(null, {style});\r\n};\r\n```\r\n\r\nThen I used it this way to create a red button:\r\n\r\n```javascript\r\nimport {withStyle} from '../HOC/withStyle.js';\r\n\r\nconst style = {\r\n  background: '#F00'\r\n};\r\n\r\nexport default withStyle(style)('button');\r\n```\r\n\r\nThe issue appears when I try to render it:\r\n\r\n```jsx\r\nimport euiButton from '../UI/styledButton.jsx';\r\n\r\nexport default {\r\n  components: {\r\n    styledButton\r\n  },\r\n\r\n  render() {\r\n    return (\r\n      <v-app>\r\n        <v-content>\r\n          Hello World\r\n          <styledButton>MyButton</styledButton>\r\n        </v-content>\r\n      </v-app>\r\n    );\r\n  }\r\n};\r\n```\r\n\r\nIn the dom, an extra pair of `<template>` is created: \r\n\r\n![screenshot at 2018-03-27 11-49-14](https://user-images.githubusercontent.com/3995719/37960078-ee3b0e02-31b4-11e8-8d51-f47c020ea7ee.png)\r\n\r\nAnd my button doesn't appear. \r\n\r\nWhy is this occurs ?\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/jackmellis/vue-hoc/issues/comments/382294200","html_url":"https://github.com/jackmellis/vue-hoc/issues/18#issuecomment-382294200","issue_url":"https://api.github.com/repos/jackmellis/vue-hoc/issues/18","id":382294200,"user":{"login":"ysaaron","id":16778946,"avatar_url":"https://avatars0.githubusercontent.com/u/16778946?v=4","gravatar_id":"","url":"https://api.github.com/users/ysaaron","html_url":"https://github.com/ysaaron","followers_url":"https://api.github.com/users/ysaaron/followers","following_url":"https://api.github.com/users/ysaaron/following{/other_user}","gists_url":"https://api.github.com/users/ysaaron/gists{/gist_id}","starred_url":"https://api.github.com/users/ysaaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysaaron/subscriptions","organizations_url":"https://api.github.com/users/ysaaron/orgs","repos_url":"https://api.github.com/users/ysaaron/repos","events_url":"https://api.github.com/users/ysaaron/events{/privacy}","received_events_url":"https://api.github.com/users/ysaaron/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T07:41:05Z","updated_at":"2018-04-18T07:41:05Z","author_association":"NONE","body":"In #19 [packages/vue-hoc/src/normalizeSlots.js#L10](https://github.com/jackmellis/vue-hoc/pull/19/files#diff-477cd72426761e1fc5e499abf062ab26R10), I've pulled [fix/html-component-slots](https://github.com/jackmellis/vue-hoc/tree/fix/html-component-slots) and reproduce this issue, even though I remove the line detecting whether it is text node also woking profect."}}
{"actor":{"display_login":"ysaaron"}}