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

taro-ui AtSearchBar组件输入字符后会有两个清除按钮 #17162

Open
hnjz-zjh opened this issue Jan 9, 2025 · 1 comment
Open

taro-ui AtSearchBar组件输入字符后会有两个清除按钮 #17162

hnjz-zjh opened this issue Jan 9, 2025 · 1 comment

Comments

@hnjz-zjh
Copy link

hnjz-zjh commented Jan 9, 2025

相关平台

H5

浏览器版本: Microsoft Edge 131.0.2903.112
使用框架: React

复现步骤

<AtSearchBar
placeholder='请输入'
value={searchValue}
onChange={(value) => { setSearchValue(value) }}
onActionClick={onActionClick}
/>

期望结果

只有一个清除按钮

实际结果

有两个清除按钮

环境信息

  Taro CLI 4.0.7 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 18.17.1 - D:\nodeJs\node.EXE
      Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.18 - D:\nodeJs\npm.CMD
    npmPackages:
      @tarojs/cli: 4.0.7 => 4.0.7 
      @tarojs/components: 4.0.7 => 4.0.7 
      @tarojs/helper: 4.0.7 => 4.0.7 
      @tarojs/plugin-framework-react: 4.0.7 => 4.0.7 
      @tarojs/plugin-platform-alipay: 4.0.7 => 4.0.7 
      @tarojs/plugin-platform-h5: 4.0.7 => 4.0.7 
      @tarojs/plugin-platform-harmony-hybrid: 4.0.7 => 4.0.7 
      @tarojs/plugin-platform-jd: 4.0.7 => 4.0.7 
      @tarojs/plugin-platform-qq: 4.0.7 => 4.0.7
      @tarojs/plugin-platform-swan: 4.0.7 => 4.0.7
      @tarojs/plugin-platform-tt: 4.0.7 => 4.0.7
      @tarojs/plugin-platform-weapp: 4.0.7 => 4.0.7
      @tarojs/react: 4.0.7 => 4.0.7
      @tarojs/runtime: 4.0.7 => 4.0.7
      @tarojs/shared: 4.0.7 => 4.0.7
      @tarojs/taro: 4.0.7 => 4.0.7
      @tarojs/vite-runner: 4.0.7 => 4.0.7
      babel-preset-taro: 4.0.7 => 4.0.7
      eslint-config-taro: 4.0.7 => 4.0.7
      react: ^18.0.0 => 18.3.1
      taro-ui: ^3.3.0 => 3.3.0
@hnjz-zjh
Copy link
Author

hnjz-zjh commented Jan 9, 2025

1736410074957

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant