蚂蚁设计-无法在手机中选择下拉值

时间:2018-11-19 06:30:15

标签: reactjs ant-design-pro

我无法在移动视图中选择select的下拉值。

<Row type="flex" justify="space-around" align="middle">
          <Col xs={12}>
            <span className="required">Unit Measure</span>
          </Col>
          <Col xs={12}>
              <Select size="large" placeholder="Unit of Measure"
                onSelect={(value) => this.setData(value,'measuringUnit')} defaultValue={this.state.pricingData.measuringUnit}>
                <Option value={null}>Select Unit Metric</Option>
                {this.props.metadata.measuringUnit &&
                  Object.keys(this.props.metadata.measuringUnit).map((index, key) => {
                    return <Option key={key} value={this.props.metadata.measuringUnit[index].id}>{this.props.metadata.measuringUnit[index].name}</Option>
                  })
                }
              </Select>
          </Col>
        </Row>

0 个答案:

没有答案