From d17b2eca0b8b9370c71c00493df0e4d10f8d29a0 Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 28 Feb 2024 12:54:57 +0800 Subject: [PATCH] * zin: avoid create random id to dropdown menu. --- lib/zin/wg/dropdown/v1.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/zin/wg/dropdown/v1.php b/lib/zin/wg/dropdown/v1.php index 5f417ca9f7..e613ae4494 100644 --- a/lib/zin/wg/dropdown/v1.php +++ b/lib/zin/wg/dropdown/v1.php @@ -125,7 +125,6 @@ class dropdown extends wg $items[$index]['icon'] = 'icon-' . $item['icon']; } - if(!is_array($menuProps)) $menuProps = array(); $menuProps['items'] = $items; $menu = zui::dropdown @@ -138,7 +137,6 @@ class dropdown extends wg 'strategy' => $strategy, 'arrow' => $arrow, 'flip' => $flip, - 'id' => $id, 'offset' => $offset, 'target' => $target, 'className' => $menuClass,