-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Input helper passed type does not work in Ember 3.1 beta #16256
Comments
Awesome, thank you for the reproduction! |
Forked repo. Investigating since I did two changes related to input type, one in Ember and one in Glimmer. |
Seems very bizarre indeed... |
Let me write my findings so far, because this is quite strange. Background
Checking the bugFirst thing I noticed is that there was no error in the console and the rendering was working past the first breaking input. Looking more deeply, changing the order of the types, would keep the same result: only the first input would be rendered. Also, the input being inside a component is required. If we are to add three inputs directly into What is happening?While checking in the DevTools the execution of the input macro, I saw that Summary
|
Before this PR, having a component with an `{{input}}` with bound type would make that input only to work the first time it was rendered. This was because the first param would be shifter from params, and that would modify the params of the rest of the instances. Fixes emberjs#16256
Before this PR, having a component with an `{{input}}` with bound type would make that input only to work the first time it was rendered. This was because the first param would be shifter from params, and that would modify the params of the rest of the instances. Fixes emberjs#16256
👏 thanks for the fix! |
Before this PR, having a component with an `{{input}}` with bound type would make that input only to work the first time it was rendered. This was because the first param would be shifter from params, and that would modify the params of the rest of the instances. Fixes #16256 (cherry picked from commit 51f09b5)
I was working on updating my apps and addons to 3.1 beta and noticed some strange behavior. I have components that wrap the
{{input}}
helper and only the first one was rendering an input. I created a reproduction here https://github.com/rwwagner90/inputs and I played around with it some. It appears the issue is passingtype
down as an argument. It chokes on:I also tested this against https://s3.amazonaws.com/builds.emberjs.com/canary/shas/9300d1b7d3aa70987986b1997ecf02a542ea49be.tgz and there did not seem to be any difference.
The text was updated successfully, but these errors were encountered: