We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cafbb4 commit 2ef0df4Copy full SHA for 2ef0df4
src/models/StyledComponent.js
@@ -40,12 +40,6 @@ export default (ComponentStyle) => {
40
}
41
const element = this.$props.as
42
return createElement(
43
- // We check to see if the target element is a Vue / Styled component.
44
- // If true, we render the component,
45
- // Otherwise, we know that it's the inner-most / inner styled component.
46
- // Before we render it, we check to see if a user as declared the polymorphic "as" prop.
47
- // If "as" is a valid HTML Element, we render the element.
48
- // If "as" is invalid, we render the default declared tag.
49
isVueComponent(target) ? target : element || target,
50
{
51
class: [this.generatedClassName],
0 commit comments