【Bug】CocosCreator3.8.2 editbox this._delegate = null

demo不知道怎么传上来。如果需要请私信我。。

  • Creator 版本: 3.8.2

  • 目标平台: chrome

  • 重现方式:

  1. 使用window.addEventListener(‘resize’, (): void => {

         });监听resize回调
    
  2. 创建一个含有editbox的nodeA

  3. 使用destory销毁这个nodeA

  4. 拖动浏览器窗口,改变窗口大小

  5. 出现bug

  • 首个报错: edit-box-impl.tx 文件的141行,this._delegate!.node.hasChangeFlags = 1;

  • 之前哪个版本是正常的: 3.8.1

  • 手机型号:

  • 手机浏览器:

  • 编辑器操作系统:

  • 重现概率: 100%

你可以在启动处添加
EditBox.prototype.onDestroy = function () {

        if (this._impl) {

            View.instance.targetOff(this._impl);

            this._impl.clear();

        }

    }

临时解决,官方说3.8.3会修复

3赞

感谢回复!!

3.8.2遇到了,还好有帖子! 。。。。。。。!!!!!!