Skip to content

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

Merged
rwjblue merged 1 commit intomasterfrom
built-in-asserts
Mar 14, 2019
Merged

[BUGFIX beta] assert <Input> and <Textarea>#17733
rwjblue merged 1 commit intomasterfrom
built-in-asserts

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)

@chancancode chancancode requested a review from rwjblue March 13, 2019 23:25
`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).
@wycats wycats force-pushed the built-in-asserts branch from 9a0c3fd to 3a545cb Compare March 13, 2019 23:28
@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