Skip to content

Commit

Permalink
feat(react-dom): Add enterKeyHint
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 16, 2020
1 parent 5f6b75d commit 8c75389
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
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

0 comments on commit 8c75389

Please sign in to comment.