dcloudio / dcloudio/mui

2.8版本中轮播控件indicator点击失效

Open
#162 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
13.5k
Forks
6.5k
PR merge metrics
No merged PRs in 30d

Description

mui 2.8版本中的轮播控件中indicator点击失效,看源码发现有些代码不见了,
问题代码出现在 _initEvent 中,我从2.5版本中把缺失的代码拷贝过来的就可以了
_initEvent: function(detach) {
var self = this;
self._super(detach);
var action = detach ? 'removeEventListener' : 'addEventListener';
self.wrapper[action]('slide', this);
self.wrapper[action]($.eventName%28'shown',), this);
//indicator
var indicator = self.wrapper.querySelector(SELECTOR_SLIDER_INDICATOR);
if (indicator) {
indicator[action]('tap', self._handleIndicatorTap.bind%28this%29);
}
},

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.