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(react-dom): Add enterKeyHint #18634

Merged
merged 1 commit into from
Jul 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions fixtures/attribute-behavior/AttributeTableSnapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -3223,6 +3223,31 @@
| `end=(null)`| (initial)| `<null>` |
| `end=(undefined)`| (initial)| `<null>` |

## `enterKeyHint` (on `<input>` inside `<div>`)
| Test Case | Flags | Result |
| --- | --- | --- |
| `enterKeyHint=(string)`| (initial)| `<empty string>` |
| `enterKeyHint=(empty string)`| (initial)| `<empty string>` |
| `enterKeyHint=(array with string)`| (initial)| `<empty string>` |
| `enterKeyHint=(empty array)`| (initial)| `<empty string>` |
| `enterKeyHint=(object)`| (initial)| `<empty string>` |
| `enterKeyHint=(numeric string)`| (initial)| `<empty string>` |
| `enterKeyHint=(-1)`| (initial)| `<empty string>` |
| `enterKeyHint=(0)`| (initial)| `<empty string>` |
| `enterKeyHint=(integer)`| (initial)| `<empty string>` |
| `enterKeyHint=(NaN)`| (initial, warning)| `<empty string>` |
| `enterKeyHint=(float)`| (initial)| `<empty string>` |
| `enterKeyHint=(true)`| (initial, warning)| `<empty string>` |
| `enterKeyHint=(false)`| (initial, warning)| `<empty string>` |
| `enterKeyHint=(string 'true')`| (initial)| `<empty string>` |
| `enterKeyHint=(string 'false')`| (initial)| `<empty string>` |
| `enterKeyHint=(string 'on')`| (initial)| `<empty string>` |
| `enterKeyHint=(string 'off')`| (initial)| `<empty string>` |
| `enterKeyHint=(symbol)`| (initial, warning)| `<empty string>` |
| `enterKeyHint=(function)`| (initial, warning)| `<empty string>` |
| `enterKeyHint=(null)`| (initial)| `<empty string>` |
| `enterKeyHint=(undefined)`| (initial)| `<empty string>` |

## `exponent` (on `<feFuncA>` inside `<svg>`)
| Test Case | Flags | Result |
| --- | --- | --- |
Expand Down
5 changes: 5 additions & 0 deletions fixtures/attribute-behavior/src/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@ const attributes = [
tagName: 'animate',
read: getSVGAttribute('end'),
},
{
name: 'enterKeyHint',
tagName: 'input',
read: getProperty('enterKeyHint'),
},
{
name: 'exponent',
read: getSVGProperty('exponent'),
Expand Down
1 change: 1 addition & 0 deletions packages/react-dom/src/shared/possibleStandardNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const possibleStandardNames = {
download: 'download',
draggable: 'draggable',
enctype: 'encType',
enterkeyhint: 'enterKeyHint',
for: 'htmlFor',
form: 'form',
formmethod: 'formMethod',
Expand Down