Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX beta] assert <Input> and <Textarea> #17733

Merged
merged 1 commit into from
Mar 14, 2019
Merged

Conversation

chancancode
Copy link
Member

@chancancode chancancode commented Mar 13, 2019

input and textarea are intended to be reserved component names, but the assertion was added to the wrong place. The end result is that only (component "input") and (component "textarea") were disallowed, but not when using the angle bracket syntax <Input /> and <Textarea />.

This compliments the existing tests in https://github.com/emberjs/ember.js/blob/master/packages/@ember/-internals/glimmer/tests/integration/components/contextual-components-test.js#L1220-L1230

@chancancode
Copy link
Member Author

I would have suggested [BUGFIX release], but we know from emberjs/rfcs#459 (comment) that this would break at least one app, so [BUGFIX beta] seems more conservative, but I would like some advise on this.

(cc @gossi: either way, my suggestion would be to rename the component in your app asap)

`input` and `textarea` are intended to be reserved component names, but
the assertion was added to the wrong place. The end result is that only
`(component "input")` and `(component "textarea")` were disallowed, but
not when using the angle bracket syntax `<Input />` and `<Textarea />`.

This compliments the existing tests in `contextual-components-test.js`
(L1220).
@rwjblue rwjblue merged commit c557721 into master Mar 14, 2019
@rwjblue rwjblue deleted the built-in-asserts branch March 14, 2019 01:54
@gossi
Copy link

gossi commented Mar 14, 2019

I'm not a blocker on this one. It's in my experimental octane/MU project. Assertion makes more sense to catch both invocations 👍

wycats pushed a commit that referenced this pull request Mar 15, 2019
[BUGFIX beta] assert `<Input>` and `<Textarea>`

(cherry picked from commit c557721)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants