ElemeFE / ElemeFE/element

[Bug Report] Table header can't horizontal scrolling when body is empty

Open
#16,950 2 comments 0 reactions 1 assignee Claimed by @ziyoung View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.11.1

### OS/Browsers version
Windows10 / Chrome 76.0.3809.100

### Vue version
2.6.10

### Reproduction Link
https://codepen.io/cyse-ars/pen/QemvVz?&editable=true

### Steps to reproduce
1. Scroll right end.
2. Filters rows that body to be empty. (reproduction link's filter will become always empty)

### What is Expected?
Shows table header and horizontal scrollbar.
Keep scroll position.

### What is actually happening?
Horizontal scrollbar is not shown, and mouse scrolling is not working.
Scroll position goes back to left end.

So if UI has no button to reset filter, that is no way to restore filtered dataset.

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.