Closed
Description
I am trying to use an Input Field in a Sub-Menu, however in Chrome and Safari the input fields are effectively disabled. This works without issue in Firefox.
Take the following example. You can enter text under Firefox, but not Chrome/Safari:
$.contextMenu({
selector: '.context-menu-one',
callback: function(key, options) {
var m = "clicked: " + key;
window.console && console.log(m) || alert(m);
},
items: {
"edit": {name: "Edit", icon: "edit"},
"cut": {name: "Cut", icon: "cut"},
"copy": {name: "Copy", icon: "copy"},
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"},
"aForm": {name: "New Entry",
items: {
"newTitle": {
name: "Title",
type: 'text'
}
}
}
}
});
If, however, I add an extra input on the root menu it works on all browsers.
$.contextMenu({
selector: '.context-menu-one',
callback: function(key, options) {
var m = "clicked: " + key;
window.console && console.log(m) || alert(m);
},
items: {
"edit": {name: "Edit", icon: "edit"},
"cut": {name: "Cut", icon: "cut"},
"copy": {name: "Copy", icon: "copy"},
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"},
"title": {
name: "Title",
type: 'text'
},
"aForm": {name: "New Entry",
items: {
"newTitle": {
name: "Title",
type: 'text'
}
}
}
}
});
It seems like something is not being initialized in the former case.
Metadata
Metadata
Assignees
Labels
No labels