(props: any, propName: string)
| 1895 | let didWarnFormActionMethod = false; |
| 1896 | |
| 1897 | function checkSelectProp(props: any, propName: string) { |
| 1898 | if (__DEV__) { |
| 1899 | const value = props[propName]; |
| 1900 | if (value != null) { |
| 1901 | const array = isArray(value); |
| 1902 | if (props.multiple && !array) { |
| 1903 | console.error( |
| 1904 | 'The `%s` prop supplied to <select> must be an array if ' + |
| 1905 | '`multiple` is true.', |
| 1906 | propName, |
| 1907 | ); |
| 1908 | } else if (!props.multiple && array) { |
| 1909 | console.error( |
| 1910 | 'The `%s` prop supplied to <select> must be a scalar ' + |
| 1911 | 'value if `multiple` is false.', |
| 1912 | propName, |
| 1913 | ); |
| 1914 | } |
| 1915 | } |
| 1916 | } |
| 1917 | } |
| 1918 | |
| 1919 | function pushStartAnchor( |
| 1920 | target: Array<Chunk | PrecomputedChunk>, |
no test coverage detected