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
[@types/react] add enterkeyhint attribute to input and textarea #43985
Comments
We shouldn't get this in before facebook/react#18634. Right now you can add it by using `enterkeyhint" and module augmentation (see Adding non-standard attributes). But the name will change later. I also wouldn't consider it experimental. It's in the WHATWG spec. We just need to update the data upstream (mdn/browser-compat-data#5990, mdn/sprints#3109, microsoft/TypeScript-DOM-lib-generator#853). TS typings will have it in 4.0 apparently (microsoft/TypeScript-DOM-lib-generator#853 (comment)). |
@eps1lon Since this is part of the already released React 17, when will the type definition get updated? |
If you know how to fix the issue, make a pull request instead.
@types/react
package and had problems.Definitions by:
inindex.d.ts
) so they can respond.There is experimental input and textarea attribute
enterkeyhint
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes that does not seem to be supported by type definitions. Even though experimental it is supported on latest releases of safari and chrome, perhaps it would be a good idea to add it?Currently following error pops up when trying to use it in react:
The text was updated successfully, but these errors were encountered: