1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix menu error for workspace tab button

This commit is contained in:
Nick O'Leary 2021-09-26 20:08:15 +01:00
parent 5ec3544340
commit a0d15e6e7b
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -102,6 +102,7 @@ RED.tabs = (function() {
var menuButton = $('<div class="red-ui-tab-button red-ui-tabs-menu"><a href="#"><i class="fa fa-caret-down"></i></a></div>').appendTo(wrapper);
var menuButtonLink = menuButton.find('a')
var menuOpen = false;
var menu;
menuButtonLink.on("click", function(evt) {
evt.stopPropagation();
evt.preventDefault();
@ -117,7 +118,7 @@ RED.tabs = (function() {
} else if (Array.isArray(options.menu)) {
menuOptions = options.menu;
}
var menu = RED.menu.init({options: menuOptions});
menu = RED.menu.init({options: menuOptions});
menu.css({
position: "absolute"
})