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

feat(input, input-number, input-text): add inputMode and enterKeyHint properties #5976

Merged
merged 4 commits into from
Dec 12, 2022

Conversation

benelan
Copy link
Member

@benelan benelan commented Dec 9, 2022

Related Issue: #5917

Summary

Adds inputMode and enterKeyHint properties to input, input-text, and input-number

@benelan benelan requested a review from a team as a code owner December 9, 2022 23:00
@github-actions github-actions bot added the enhancement Issues tied to a new feature or request. label Dec 9, 2022
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

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

💯 🧑‍🍳

@@ -906,8 +925,8 @@ export class InputNumber
autofocus={this.autofocus ? true : null}
defaultValue={this.defaultValue}
disabled={this.disabled ? true : null}
enterKeyHint={this.el.enterKeyHint}
inputMode={this.el.inputMode}
Copy link
Member

Choose a reason for hiding this comment

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

nice. We shouldn't have these this.el props anymore :D

* Specifies the type of content to help devices display an appropriate virtual keyboard.
* Read the native attribute's documentation on MDN for more info.
*
* @mdn [step](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we be passing this @mdn tag through to the documentation site UI at all to indicate these are native html attributes?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah that was my plan. I added all the tags but other stuff came up before I could get them thru docs-json. Probably a post v1 thing.

@benelan benelan added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Dec 12, 2022
@benelan benelan merged commit d567a9f into master Dec 12, 2022
@benelan benelan deleted the benelan/5917-more-native-input-attributes branch December 12, 2022 17:56
@github-actions github-actions bot added this to the 2023 January Priorities milestone Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues tied to a new feature or request. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants