-
Notifications
You must be signed in to change notification settings - Fork 75
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
Conversation
There was a problem hiding this 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} |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Related Issue: #5917
Summary
Adds
inputMode
andenterKeyHint
properties toinput
,input-text
, andinput-number