Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

picker mode=date 要是一开始赋值为'',就选不了了 #10405

Closed
zhiqingchen opened this issue Oct 11, 2021 · 0 comments · Fixed by #10866
Closed

picker mode=date 要是一开始赋值为'',就选不了了 #10405

zhiqingchen opened this issue Oct 11, 2021 · 0 comments · Fixed by #10866
Assignees
Labels
F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x

Comments

@zhiqingchen
Copy link
Member

相关平台

React Native

使用框架: React

复现步骤

 <Picker mode='date' onChange={this.onDateChange} value=''>
    <View className='picker'>
      当前选择:{this.state.dateSel}
    </View>
  </Picker>

期望结果

无法选择

实际结果

赋值为空仍可以选择

环境信息

👽 Taro v3.3.6


  Taro CLI 3.3.6 environment info:
    System:
      OS: macOS 11.4
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 15.12.0 - ~/.nvm/versions/node/v15.12.0/bin/node
      Yarn: 1.22.10 - ~/.nvm/versions/node/v15.12.0/bin/yarn
      npm: 7.6.3 - ~/.nvm/versions/node/v15.12.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.3.6 => 3.3.6
      @tarojs/components: 3.3.6 => 3.3.6
      @tarojs/mini-runner: 3.3.6 => 3.3.6
      @tarojs/react: 3.3.6 => 3.3.6
      @tarojs/runtime: 3.3.6 => 3.3.6
      @tarojs/taro: 3.3.6 => 3.3.6
      @tarojs/webpack-runner: 3.3.6 => 3.3.6
      babel-preset-taro: 3.3.6 => 3.3.6
      eslint-config-taro: 3.3.6 => 3.3.6
      react: ^17.0.0 => 17.0.2
      react-native: ^0.64.0 => 0.64.2
    npmGlobalPackages:
      typescript: 4.2.3

@taro-bot2 taro-bot2 bot added F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x labels Oct 11, 2021
@zhiqingchen zhiqingchen self-assigned this Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant