(element, props)
| 20404 | } |
| 20405 | } |
| 20406 | function validateSelectProps(element, props) { |
| 20407 | for (element = 0; element < valuePropNames.length; element++) { |
| 20408 | var propName = valuePropNames[element]; |
| 20409 | if (null != props[propName]) { |
| 20410 | var propNameIsArray = isArrayImpl(props[propName]); |
| 20411 | props.multiple && !propNameIsArray |
| 20412 | ? console.error( |
| 20413 | "The `%s` prop supplied to <select> must be an array if `multiple` is true.%s", |
| 20414 | propName, |
| 20415 | getDeclarationErrorAddendum() |
| 20416 | ) |
| 20417 | : !props.multiple && |
| 20418 | propNameIsArray && |
| 20419 | console.error( |
| 20420 | "The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s", |
| 20421 | propName, |
| 20422 | getDeclarationErrorAddendum() |
| 20423 | ); |
| 20424 | } |
| 20425 | } |
| 20426 | void 0 === props.value || |
| 20427 | void 0 === props.defaultValue || |
| 20428 | didWarnValueDefaultValue || |
| 20429 | (console.error( |
| 20430 | "Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components" |
| 20431 | ), |
| 20432 | (didWarnValueDefaultValue = !0)); |
| 20433 | } |
| 20434 | function validateTextareaProps(element, props) { |
| 20435 | void 0 === props.value || |
| 20436 | void 0 === props.defaultValue || |
no test coverage detected
searching dependent graphs…