EasyUI Forum

General Category => Bug Report => Topic started by: phunksta on March 29, 2018, 03:14:55 AM



Title: 1.5.4.3 menu('findItem') inconsistent results
Post by: phunksta on March 29, 2018, 03:14:55 AM
Issue spotted when using datagrid-filter.js with 1.5.4.3, several errors thrown when the filter icon update occurs.

re-created on the Current demo page (https://www.jeasyui.com/demo/main/index.php?plugin=Menu&theme=material&dir=ltr&pitem=&sort=)

Code:
$('#mm')[0]
<div id=​"mm" class=​"easyui-menu menu-top menu" style=​"width:​ 120px;​ height:​ 124px;​ overflow:​ hidden;​ display:​ none;​ left:​ 0px;​ top:​ 0px;​">​
<div class=​"menu-line" style=​"height:​ 122px;​">​</div>​
<div onclick=​"javascript:​alert('new')​" class=​"menu-item" style=​"height:​ 22px;​">​
<div class=​"menu-text" style=​"height:​ 20px;​ line-height:​ 20px;​">​New​</div>​
</div>
​<div class=​"menu-item" style=​"height:​ 22px;​">​
<div class=​"menu-text" style=​"height:​ 20px;​ line-height:​ 20px;​">​<span>​Open​</span>​
</div>​
<div class=​"menu-rightarrow">​</div>​</div>​<div data-options=​"iconCls:​'icon-save'" class=​"menu-item" style=​"height:​ 22px;​">​…​</div>​<div data-options=​"iconCls:​'icon-print',disabled:​true" class=​"menu-item menu-item-disabled" style=​"height:​ 22px;​">​…​</div>​
<div class=​"menu-sep">​</div>​<div class=​"menu-item" style=​"height:​ 22px;​">​…​</div>​</div>​

$('#mm').menu('findItem','New')
null

$('#mm').menu('findItem','Open')
{text: "<span>Open</span>", onclick: null, target: div.menu-item}



Title: Re: 1.5.4.3 menu('findItem') inconsistent results
Post by: jarry on March 29, 2018, 08:14:17 AM
Please try to download a newer version from https://www.jeasyui.com/download/v154.php