didi / didi/cube-ui

scroll组件内部放textarea 内容过多时,无法滑动

Open
#208 2 comments 0 reactions 1 assignee Assigned to @tank0317 View on GitHub
add demo
Dominant language
JavaScript
Stars
9.1k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

### Version
1.9.3

### Reproduction link
[https://l44llqp9j9.codesandbox.io/](https://l44llqp9j9.codesandbox.io/)

### Steps to reproduce

### What is expected?
textarea 内容多时可以滚动

### What is actually happening?
textarea不可以滚动

### Dependencies Version
vue: 2.5.17-beta.0
better-scroll: 1.11.1

---
BScroll.prototype._move = function (e) {
if (!this.enabled || this.destroyed || eventType[e.type] !== this.initiated) {
return;
}

if (this.options.preventDefault) {
e.preventDefault();
}

缺少对preventDefaultException的判断,以前放个div,over-flow=auto也无法滚动

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.