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

Maximum call stack size exceeded in v-bind:class using $slots #7786

Comments

@Leopoldthecoder
Copy link

Version

2.5.14

Reproduction link

https://jsfiddle.net/mmx38qxw/568/

Steps to reproduce

Run the fiddle

What is expected?

Render without error

What is actually happening?

Console warns that maximum call stack size exceeded


This demo works fine in prior versions, so it might be a regression in 2.5.14. Another find is that if I don't pass <span slot="append"> to <compo>, there'll be no error.

@jayzch
Copy link

jayzch commented Mar 10, 2018

一不小心升级了下,同时升级了ele-ui。看到这个我就放心了

@jkzing
Copy link
Member

jkzing commented Mar 10, 2018

It was introduced in 956756b, as a workround, you can use something like:

{
  template: `
    <div :class="{ 'has-slot': !!$slots.append }">
      <slot name="append"></slot>
    </div>
  `
}

@Gemorroj
Copy link

Gemorroj commented Mar 10, 2018

@yyx990803 Will there be a hotfix?
upd: released https://github.com/vuejs/vue/releases/tag/v2.5.15

@skyetang
Copy link

修复速度真快,666~

@ibyteyou
Copy link

ibyteyou commented Apr 9, 2018

Case failed with this error when:

  • exists computed array with other reactive components
  • set watcher { deep: true } on it computed

f2009 pushed a commit to f2009/vue that referenced this issue Jan 25, 2019
f2009 pushed a commit to f2009/vue that referenced this issue Jan 25, 2019
aJean pushed a commit to aJean/vue that referenced this issue Aug 19, 2020
aJean pushed a commit to aJean/vue that referenced this issue Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment