ElemeFE / ElemeFE/element

[Bug Report] el-collapse-transition: overflow not reset when switching to fast

Open
#15,792 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.9.0

### OS/Browsers version
Chrome

### Vue version
2.6.10

### Reproduction Link
https://jsfiddle.net/aurelienlt89/mp27wuhb/10/

### Steps to reproduce
Click on the "Try" button

### What is Expected?
The `overflow` should be reset to its original value (`undefined`)

### What is actually happening?
The `overflow` stays to `"hidden"`

This is due to the functions `enter` and `beforeLeave` not checking the state while saving the current `overflow` in `oldOverflow`.
Because of that, `oldOverflow` is set to `"hidden"` when it should be untouched because in transition already.
It is also the case for other saved styles: `padding-top` and `padding-bottom`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.