mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
fix touch event
This commit is contained in:
parent
033ec68c9f
commit
1c73c61f17
@ -382,7 +382,7 @@ InstantClickChangeFns.push(function() {
|
||||
navMenu.removeClass('nav-hide').addClass('nav-show');
|
||||
});
|
||||
|
||||
$('body').on('click', function (e) {
|
||||
$('body').on('click touchstart', function (e) {
|
||||
if (e.target !== $('.nav-phone-icon')[0] &&
|
||||
!navMenu[0].contains(e.target) &&
|
||||
navMenu.hasClass('nav-show')) {
|
||||
|
Loading…
Reference in New Issue
Block a user