element-plus icon indicating copy to clipboard operation
element-plus copied to clipboard

[Bug Report] [Component] [tabs] [Vue warn]: Maximum recursive updates exceeded in component <ElTabs>.

Open kelvinye-lab opened this issue 4 years ago • 9 comments

Bug Type: Component

Environment

  • Vue Version: 3.2.31
  • Element Plus Version: 2.1.5
  • Browser / OS: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36
  • Build Tool: Vite

Reproduction

Related Component

  • el-tabs

Steps to reproduce

<el-tabs v-show="tabs.length > 0" v-model="activeTabNo" type="card" closable @tab-remove="handleTabRemove">

What is Expected?

no error, no warning

What is actually happening?

console prompt warning: [Vue warn]: Maximum recursive updates exceeded. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.

kelvinye-lab avatar Mar 26 '22 02:03 kelvinye-lab

use label slot will trigger the same warning

Nemonvgu avatar Mar 26 '22 03:03 Nemonvgu

use label slot will trigger the same warning

I also have this problem

snvtac avatar Mar 26 '22 08:03 snvtac

我也有相同问题,去掉#label后正常

mxp131011 avatar Mar 28 '22 03:03 mxp131011

same problem

fineewen avatar Mar 28 '22 03:03 fineewen

me too. 俺也一样

ghost avatar Mar 28 '22 07:03 ghost

遇到同样问题

talksmallice avatar Mar 28 '22 08:03 talksmallice

Same here. If i add

<template #label>
i am getting the same error
</template>

latolukasz avatar Mar 28 '22 11:03 latolukasz

Should be fixed by #6871

HeftyKoo avatar Mar 28 '22 14:03 HeftyKoo

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

github-actions[bot] avatar Apr 27 '22 16:04 github-actions[bot]