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

swiper里面旧版canvas无法正常销毁? #14873

Open
luqihao opened this issue Nov 23, 2023 · 0 comments
Open

swiper里面旧版canvas无法正常销毁? #14873

luqihao opened this issue Nov 23, 2023 · 0 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@luqihao
Copy link

luqihao commented Nov 23, 2023

相关平台

微信小程序

小程序基础库: 3.2.1
使用框架: React

复现步骤

使用旧版canvas(新版canvas api没问题,项目原因没办法用新版),swiper item里的组件如果有canvas,如果把组件销毁了,组件里面的canvas不会销毁,代码结构类似于

<Swiper>

    <SwiperItem>

        {

            visible && (

                <View>

                    <Canvas canvasId="" />

                </View>

            )

        }

    </SwiperItem>

</Swiper>

期望结果

在组件销毁时组件里的canvas也能正常销毁

实际结果

在组件销毁时组件里的canvas不能正常销毁

环境信息

Taro v3.5.0


  Taro CLI 3.5.0 environment info:
    System:
      OS: macOS 13.4.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
      Yarn: 1.22.17 - ~/.yarn/bin/yarn
      npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.16 => 3.6.16
      @tarojs/components: 3.6.16 => 3.6.16
      @tarojs/helper: 3.6.16 => 3.6.16
      @tarojs/plugin-framework-react: 3.6.16 => 3.6.16
      @tarojs/plugin-platform-weapp: 3.6.16 => 3.6.16
      @tarojs/react: 3.6.16 => 3.6.16
      @tarojs/runtime: 3.6.16 => 3.6.16
      @tarojs/shared: 3.6.16 => 3.6.16
      @tarojs/taro: 3.6.16 => 3.6.16
      @tarojs/taro-loader: 3.6.16 => 3.6.16
      babel-preset-taro: 3.6.16 => 3.6.16
      eslint-config-taro: 3.6.16 => 3.6.16
      react: 18.2.0 => 18.2.0
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

No branches or pull requests

1 participant