* Implements an host component that warns when `selected` is set.
(element, props)
| 13802 | */ |
| 13803 | |
| 13804 | function validateProps(element, props) { |
| 13805 | // TODO (yungsters): Remove support for `selected` in <option>. |
| 13806 | { |
| 13807 | if (props.selected != null && !didWarnSelectedSetOnOption) { |
| 13808 | warning(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.'); |
| 13809 | didWarnSelectedSetOnOption = true; |
| 13810 | } |
| 13811 | } |
| 13812 | } |
| 13813 | |
| 13814 | function postMountWrapper$1(element, props) { |
| 13815 | // value="" should make a value attribute (#6219) |
no test coverage detected