WelcomeForumsCommunityMenu item remains selected.

Wijmo Team Member
Stephen Yates posted on June 20, 2012 at 4:52 pm link

When a menu item is selected the item is highlighted as expected and the menu closed. However, when the menu is displayed again the previously selected item is still highlighted. While I understand this is by design I need to have the menu display subsequent times with no items highlighted. I thought I could resolve this by adding a call to the deactivate method to the select handler for the menu as shown below.

$(“#flyoutmenu”).wijmenu(
{
select: function(e, data)
{
$(“#flyoutmenu”).wijmenu(“deactivate”);
}
});

This works as expected in Internet Explorer (8 & 9) and the menu is always shown with no items selected. However in Chrome, Firefox and Safari the item remains selected.

Is there another way to do this which will work in all browsers?

Thanks.

Wijmo Team Member
abdiasm posted on June 21, 2012 at 3:59 pm link

This method works on all browsers at my end (IE9, FF 12, Safari 5.1, Chrome 19.0).

Which version of wijmo are you using? Please try the latest version 2.1.1.

Answer
Wijmo Team Member
Stephen Yates posted on June 22, 2012 at 2:56 pm link

Further testing shows that the problem was introduced with Wijmo 2.1.0.

I used the attached modified version of the menu overview sample. When using Wijmo 2.0.x the menu items are correctly cleared by the deactivate method when the menu is next shown. However, when using Wijmo 2.1.x (including the latest 2.1.2) the problem occurs and the deactivate method does not seem to work correctly in any browser (FF 12, Safari 5.1, Chrome 19) other than IE 8/9.

Attachments:
  1. overview1.html
Answer
Wijmo Team Member
lianbo posted on June 26, 2012 at 5:22 am link

Hi Stephen,
It is fixed in v2.1.3.

Answer

This topic has 3 voices, contains 3 replies, and was last updated by  lianbo 333 days ago.

You must be logged in to reply to this topic.