Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复微信开发者工具不能正确点击radio的问题 #467

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 9 additions & 37 deletions dist/css/mui.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/mui.min.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/js/mui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,10 @@ Function.prototype.bind = Function.prototype.bind || function(to) {
if (document.activeElement && document.activeElement !== targetElement) {
document.activeElement.blur();
}
//在微信开发者工具中event.detail.gesture.changedTouches会是undefined,临时使用event.detail.touches替换
if(event.detail.gesture.changedTouches == undefined){
event.detail.gesture.changedTouches = event.detail.touches;
}
touch = event.detail.gesture.changedTouches[0];
// Synthesise a click event, with an extra attribute so it can be tracked
clickEvent = document.createEvent('MouseEvents');
Expand Down
5 changes: 1 addition & 4 deletions dist/js/mui.min.js

Large diffs are not rendered by default.

Loading