webark / ember-component-css

An Ember CLI addon which allows you to specify styles for individual components
MIT License
540 stars 115 forks source link

Doesn't work with angle brackets #330

Open maxwondercorn opened 5 years ago

maxwondercorn commented 5 years ago

Using the ember-angle-bracket-invocation-polyfill with ember 3.51 so I can use angle bracket <Input />. {{styleNamespace}} generates a template compiler error: Cannot read property 'type' of undefined

   <Input
       class="form-control {{styleNamespace}}__pwd"
       @type="password"
       @value={{this.password}}
       @placeholder="Password"
       data-test-pwd=""
     />

The type is password but it doesn't matter what the type is. {{styleNamespace}} will generate the error. Since there isn't a code snippet with issue #61 I can't compare the issues.

I don't know but I would assume this issue will show up on 3.11 where angle bracket input and textarea are built in.