We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is a follow-up to #4784.
The capture attribute on input elements is currently supported, but it is configured as a HAS_BOOLEAN_VALUE attribute:
capture
input
HAS_BOOLEAN_VALUE
react/packages/react-dom/src/shared/HTMLDOMPropertyConfig.js
Line 33 in 1eed302
This causes
<input type="file" capture="user" />
to render as
<input type="file" capture />
The capture attribute supports strings though: https://www.w3.org/TR/html-media-capture/#the-capture-attribute
This is very important for being able to configure the default camera selected on mobile devices.
The text was updated successfully, but these errors were encountered:
Support string values for capture attribute. (#11424)
2fe3494
* Uses HAS_OVERLOADED_BOOLEAN_VALUE instead of HAS_BOOLEAN_VALUE * Allows for <input type="file" capture="user" /> Fixes #11419
Should be out in 16.1.1.
Sorry, something went wrong.
I have confirmed that updating react-dom to 16.1.1 fixes the issue in my project. 👍
react-dom
Support string values for capture attribute. (facebook#11424)
173373e
* Uses HAS_OVERLOADED_BOOLEAN_VALUE instead of HAS_BOOLEAN_VALUE * Allows for <input type="file" capture="user" /> Fixes facebook#11419
clemmy
No branches or pull requests
This is a follow-up to #4784.
The
capture
attribute oninput
elements is currently supported, but it is configured as aHAS_BOOLEAN_VALUE
attribute:react/packages/react-dom/src/shared/HTMLDOMPropertyConfig.js
Line 33 in 1eed302
This causes
to render as
The
capture
attribute supports strings though: https://www.w3.org/TR/html-media-capture/#the-capture-attributeThis is very important for being able to configure the default camera selected on mobile devices.
The text was updated successfully, but these errors were encountered: