os-js / osjs-gui

OS.js GUI Module
https://manual.os-js.org/v3/
Other
18 stars 10 forks source link

Add a keep menu open function or thing for elements in a context menu #9

Closed RossComputerGuy closed 5 years ago

andersevenrud commented 5 years ago

I tagged the wrong issue in my commit, but this has now been solved.

I've added the 'closeable' attribute to a menu option:

[{
  closeable: false,
  element: () => h('div', {}, 'Custom component'),
}]

I also solved some issues relating to things not responding to input.