Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html <;李>;不能显示为<;的子级;选择>;_Html_Reactjs_Drop Down Menu_Material Ui_Textfield - Fatal编程技术网

Html <;李>;不能显示为<;的子级;选择>;

Html <;李>;不能显示为<;的子级;选择>;,html,reactjs,drop-down-menu,material-ui,textfield,Html,Reactjs,Drop Down Menu,Material Ui,Textfield,在选择中使用本机时出现以下错误 <TextField select value={options.length ? value : defaultValue} SelectProps={{ native: true, }}> 我使用的是材料界面文本字段 validateDOMNesting(...): <li> cannot appear as a child of <select>. in li (created by

选择中使用本机时出现以下错误

<TextField 
  select
  value={options.length ? value : defaultValue}
  SelectProps={{
    native: true,
  }}>

我使用的是材料界面文本字段

validateDOMNesting(...): <li> cannot appear as a child of <select>.
    in li (created by ForwardRef(ButtonBase))
    in ForwardRef(ButtonBase) (created by WithStyles(ForwardRef(ButtonBase))) ```
validateDOMNesting(…):
  • 不能显示为的子级。 在li中(由ForwardRef(按钮库)创建) 在ForwardRef(按钮库)(由WithStyles(ForwardRef(按钮库))创建)```