* Implements an host component that warns when `selected` is set.
(element, props)
| 14579 | */ |
| 14580 | |
| 14581 | function validateProps(element, props) { |
| 14582 | // TODO (yungsters): Remove support for `selected` in <option>. |
| 14583 | { |
| 14584 | if (props.selected != null && !didWarnSelectedSetOnOption) { |
| 14585 | warning(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.'); |
| 14586 | didWarnSelectedSetOnOption = true; |
| 14587 | } |
| 14588 | } |
| 14589 | } |
| 14590 | |
| 14591 | function postMountWrapper$1(element, props) { |
| 14592 | // value="" should make a value attribute (#6219) |
no test coverage detected