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

[Bug Report] [Component] [popover] Cannot read properties of null (reading 'insertBefore') #7280

Open
baixiaoyu2997 opened this issue Apr 20, 2022 · 4 comments
Labels

Comments

@baixiaoyu2997
Copy link

baixiaoyu2997 commented Apr 20, 2022

Bug Type: Component

Environment

  • Vue Version: 3.2.33
  • Element Plus Version: 2.1.10
  • Browser / OS: MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
  • Build Tool: Vite

Reproduction

Related Component

  • el-popover

Reproduction Link

Link

Steps to reproduce

进入页面后,打开控制台查看报错信息

What is Expected?

不出现阻塞性bug

What is actually happening?

出现阻塞性bug,Cannot read properties of null (reading 'insertBefore')

Additional comments

不确定是否为element的bug,有可能跟这个issue有关:vuejs/core#5657

@Winston-Guess
Copy link

Winston-Guess commented May 19, 2022

I'm getting this very regularly in my app as well. Any movement on this?

Edit: v2.2.0 (I only get this issue in production)

@choukin
Copy link

choukin commented Dec 22, 2022

我也遇到这个问题,本地开发没问题,二级页面强制刷新就报错

@Spirit04eK
Copy link

I have similar issue with ElScrollbar component

@danekslama
Copy link

@Spirit04eK @baixiaoyu2997 still not fixed, having the same issue with el-dialog. What's weird is that removing the parent

element fixes the issue.

Throwing error

    <el-popover>
      <div>
        <p>
          <span v-if="address"></span>
          <span v-else></span>
        </p>
      </div>
      <template #reference>test</template>
    </el-popover>

Working as expected

    <el-popover>
      <div>
          <span v-if="address"></span>
          <span v-else></span>
      </div>
      <template #reference>test</template>
    </el-popover>

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

No branches or pull requests

5 participants