You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is good for beginners. Read Making your first pull request and ask for help if you run into issues! Experienced contributors are asked to search for other things to fix.
In this guide we show using a keyPress event with a checkbox. That seems odd since a click will not trigger updates.
Replace this example with a text input, try it in an app to see if it works, and open a PR with the change. Make sure to check the written sections around the example to see if any of the explanations need to be changed too.
Hi, @viraldevpb. Thanks for wanting to help out with this issue!
I noticed that the issue is a bit outdated and its description needs to be updated. Currently,
1. The Built-in Components page, in versions 3.15 - 3.23, shows the correct usage of checkbox inputs.
2. The Input Helpers in versions 3.7 - 3.13, as well as Input Components in version 3.14, can use an update.
3. We don't need to change Input Helpers for versions 3.6 and below, because it doesn't talk about how to bind an action to a checkbox input.
Hi, @ejfian-2020. Thank you for making time to help out with the issue.
Yes, I think the 2 TODOs listed in my comment above (Jan 3, 2021) are yet to be done. Could you help out with updating the code examples for Ember 3.7 - 3.14?
If a code example shows angle brackets, please use the angle bracket syntax. If curly braces, keep the curly brace syntax. If you have any questions, please let me know!
Hi @ijlee2,
Just so that i understand the asks correctly. This change needs to be done for all the versions of Ember from 3.7 to 3.14 , is that correct ?
Based on your recommendations I will create 2 commits in the PR one for the v3.14 and another for v3.7- v3.13.
Hi @ijlee2 ,
For v3.10 - v3.13 , the code is using angle brackets and removing the @name="isAdmin" , I will change the <Input @type="text" @keyPress={{action "updateName"}} />
to
Activity
asbillings07 commentedon Sep 21, 2019
Could I take a stab at fixing this one?
acorncom commentedon Sep 21, 2019
@asbillings07 please do!
asbillings07 commentedon Sep 21, 2019
Awesome. Will get started on it. Thanks!
update input @type to equal "text" (ember-learn#1016)
jenweber commentedon Oct 2, 2019
(oops, wrong thread, this doesn't count for Hacktoberfest, but we'd love for you to participate)
ab-develops-ads commentedon Oct 2, 2019
Ah okay. I'll take a look at another one I can submit a PR for.
removed checkbox sentence to match with updated text input (ember-lea…
Merge pull request #1089 from asbillings07/checkbox-to-text-input
prathamesh-borse commentedon Jan 3, 2021
can i work on this issue now?
ijlee2 commentedon Jan 3, 2021
Hi, @viraldevpb. Thanks for wanting to help out with this issue!
I noticed that the issue is a bit outdated and its description needs to be updated. Currently,
1. The Built-in Components page, in versions 3.15 - 3.23, shows the correct usage of checkbox inputs.
2. The Input Helpers in versions 3.7 - 3.13, as well as Input Components in version 3.14, can use an update.
3. We don't need to change Input Helpers for versions 3.6 and below, because it doesn't talk about how to bind an action to a checkbox input.
TODOs
1. Input Components page (v3.14)
Remove the
@name="isAdmin"in https://guides.emberjs.com/v3.14.0/templates/input-components/#toc_checkboxes. (This better matches the new code example in v3.15.)Update the code
<Input @type="text" @keyPress={{action "updateName"}} />to:Note, it's all 1 line (don't worry about improving the formatting for 3.14).
2. Input Helpers page (3.7 - 3.13)
Update the code
{{input type="checkbox" keyPress=(action "updateName")}}to:Note,
name="isAdmin"is kept intact.Notes
Can you make 2 commits for your pull request, one for v3.14 and another for v3.7 - v3.13. This will help with the review.
Thanks, and let me know if you have any questions!
arshibhatt-cs commentedon Mar 28, 2021
Is there any work remaining to be done for this issue ? I can take a stab at it. Thanks
ijlee2 commentedon Mar 28, 2021
Hi, @ejfian-2020. Thank you for making time to help out with the issue.
Yes, I think the 2 TODOs listed in my comment above (Jan 3, 2021) are yet to be done. Could you help out with updating the code examples for Ember 3.7 - 3.14?
If a code example shows angle brackets, please use the angle bracket syntax. If curly braces, keep the curly brace syntax. If you have any questions, please let me know!
arshibhatt-cs commentedon Mar 29, 2021
Hi @ijlee2,
Just so that i understand the asks correctly. This change needs to be done for all the versions of Ember from 3.7 to 3.14 , is that correct ?
Based on your recommendations I will create 2 commits in the PR one for the v3.14 and another for v3.7- v3.13.
changes to code examples of Input Components page (ember-learn#1016)
arshibhatt-cs commentedon Mar 29, 2021
Hi @ijlee2 ,
For v3.10 - v3.13 , the code is using angle brackets and removing the @name="isAdmin" , I will change the
<Input @type="text" @keyPress={{action "updateName"}} />to
<Input @id="admin-checkbox" @type="checkbox" @checked={{this.isAdmin}} @input={{this.validateRole}} />Please confirm if the change looks good.
changes in Input Helpers page for v3.7 - v3.13 (ember-learn#1016)
Merge pull request #1655 from ejfian-2020/issue-1016-change-input-att…