Skip to content

changes to code examples of Input Components page (#1016) - #1655

Merged
ijlee2 merged 2 commits into
ember-learn:masterfrom
arshibhatt-cs:issue-1016-change-input-attributes
Mar 29, 2021
Merged

ijlee2 merged 2 commits into
ember-learn:masterfrom
arshibhatt-cs:issue-1016-change-input-attributes

Conversation

@arshibhatt-cs

@arshibhatt-cs arshibhatt-cs commented Mar 29, 2021 •

Copy link
Copy Markdown
Contributor

@ijlee2 Please review my first PR for the issue #1016
Let me know if you have any feedback!

  1. List of changes done to the Input Components page (v3.14)

<Input @id="admin-checkbox" @type="checkbox" @checked={{this.isAdmin}} @input={{this.validateRole}} />

  1. List of changes done to the Input Helpers page (v3.7 - v3.9)
  • Update the code {{input type="checkbox" keyPress=(action "updateName")}} to:

{{input type="checkbox" name="isAdmin" checked=this.isAdmin input=(action "validateRole")}}

  1. List of changes done to the Input Helpers page (v3.10 - v3.13)
  • Update the <Input @type="text" @keypress={{action "updateName"}} /> to:

<Input @id="admin-checkbox" @type="checkbox" @checked={{this.isAdmin}} @input={{this.validateRole}} />

@ijlee2 ijlee2 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ejfian-2020 Thank you very much for your help with updating the Input Components page. I'm glad to see the page has improved for earlier versions of Ember, and see another first-time contributor to the Ember Guides!

@ijlee2 ijlee2 linked an issue Mar 29, 2021 that may be closed by this pull request
@ijlee2
ijlee2 merged commit b7a6876 into ember-learn:master Mar 29, 2021
@arshibhatt-cs
arshibhatt-cs deleted the issue-1016-change-input-attributes branch March 29, 2021 06:27
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.

Change checkbox input to a text input

2 participants