at-ui icon indicating copy to clipboard operation
at-ui copied to clipboard

Bug: leak in tabs.vue, updateHandle() is being called event destroy - causing console errors

Open mrin9 opened this issue 8 years ago • 4 comments

Version Tested

v1.3.2

The Bug

There seems to be is a leak in tabs.vue this line in tabs.vue (updateHandle) is getting called event after tabs get destroyed.

It is causing console errors

Steps to reproduce

  1. Go to the JS Bin Test Case
  2. Open the Developer tools, so that you can see console errors
  3. Destroy the Tab component using 'Toggle Tab' button
  4. Now to call updateHandle() method in tabs.vue resize the window, notice the console errors

mrin9 avatar Feb 13 '18 04:02 mrin9

I released v1.3.3, but i can't reproduce with v1.3.2

koppthe avatar Feb 13 '18 08:02 koppthe

Were you able to reproduce it with my JS Bin Text case? I am not sure which version of AT-UI the JSBin is using, but on my end it is hapening in both 1.3.2 and 1.3.3

Below is gif that displays it

tabbug

mrin9 avatar Feb 13 '18 20:02 mrin9

Hi, Did you get time to verify, if its a bug, or is there something wrong that i am doing ?

mrin9 avatar Feb 20 '18 16:02 mrin9

thanks for your gif. It's obviously a bug. 😕

koppthe avatar Feb 23 '18 02:02 koppthe