jQuery UI Menubar and anchors with a target attribute
I did a search for "menubar target" and nothing came up.
Is anybody else having problems with using the jQuery UI Menubar with anchors that have a target attribute?
This is what I basically have for the HTML:
- <ul id="menubar">
- <li>Stuff
- <ul>
- <li><a href="http://www.google.com" target="_blank">Google</a></li>
- </ul>
- </li>
- </ul>
And for the JS:
The expected behavior is for the anchor to open the google.com page only in a new tab, and to leave the current tab alone.
What actually happens when I click on the Google item is the google.com page opens in a new tab AND in the current tab.
I am using jQuery UI 1.11.4 with jQuery 1.11.3.