tarojs 3.0.8 Form.onSubmit()事件中,在钉钉(Alipay)小程序中,取不到Picker组件的值



  • tarojs 3.0.8
    在Form.onSubmit()事件中,在钉钉(Alipay)小程序中,取不到Picker组件的值,在H5下就可以取到,在微信下也可以取到,但是钉钉下就是取不到。

        <Form onSubmit={this.onSubmit} reportSubmit reportSubmitTimeout='5'>
          <View className='page-section'>
              <Text>日期选择器</Text>
              <View>
                <Picker mode='date' name='start_date' value={this.state.dateSel} onChange={this.onDateChange}>
                  <View className='picker'>
                    当前选择:{this.state.dateSel}
                  </View>
                </Picker>
              </View>
            </View>
          
          <Button className='submit-btn' formType='submit'>提交</Button>
        </Form>        
    

    onSubmit = (e) => {
    const { value } = e.detail
    console.log(value)
    }


登录后回复