我正试着用滑动开关滑动切换我的二十三个移动菜单,它只滑下来,但它很快就回来了(没有滑动)。我注入了其他代码来使它滑动,但它有but。以下是原始代码
/**
* Enables menu toggle for small screens.
*/
( function() {
if ( ! nav || ! button ) {
return;
}
// Hide button if menu is missing or empty.
if ( ! menu || ! menu.children().length ) {
but