Templarian / ui.bootstrap.contextMenu

AngularJS Bootstrap UI Context Menu
MIT License
259 stars 127 forks source link

Sub-menus autoclose when their focus is lost #90

Closed morellodev closed 7 years ago

morellodev commented 7 years ago

I have introduced an event listener to auto-hide submenus when their focus is lost (on "mouseleave" event)

Templarian commented 7 years ago

There appears to be a lot of modifications in this. Will try and spend some time shortly to look through this.

Need to get an update on this out shortly after some testing.

morellodev commented 7 years ago

You see a lot of modifications because I've pushed a reformatted source code. The added part is only from row 184 to 188:

$ul.on('mouseleave', function ($event) {

if (level > 0) { removeContextMenus(level); } });

2016-11-20 9:46 GMT+01:00 Austin Andrews notifications@github.com:

There appears to be a lot of modifications in this. Will try and spend some time shortly to look through this.

Need to get an update on this out shortly after some testing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Templarian/ui.bootstrap.contextMenu/pull/90#issuecomment-261766232, or mute the thread https://github.com/notifications/unsubscribe-auth/ASrmBeQroWr9s2Su7M_NS3n25uT8BsgCks5rAAjpgaJpZM4KyXXe .

[image: CW Logo (no word).jpg]

Dennis Morello | ContentWise R&D

ContentWise | Digital TV. Personalized.

M: +39 340 487 8469 <%2B39%20340%204878469> | www.contentwise.tv

Skype: dennismorello

Via Schiaffino 11, 20158 Milano - Italy

josetaira commented 7 years ago

Please remove the formatting changes, and just add the code that this PR is trying to actually do.

morellodev commented 7 years ago

https://github.com/dennismorello/ui.bootstrap.contextMenu/releases/tag/v0.9.9.2

2016-11-21 11:11 GMT+01:00 Jose Taira notifications@github.com:

Please remove the formatting changes, and just add the code that this PR is trying to actually do.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Templarian/ui.bootstrap.contextMenu/pull/90#issuecomment-261896328, or mute the thread https://github.com/notifications/unsubscribe-auth/ASrmBY_kt3MzRcl9k4_zjIPy8Jrb9TOjks5rAW5KgaJpZM4KyXXe .

[image: CW Logo (no word).jpg]

Dennis Morello | ContentWise R&D

ContentWise | Digital TV. Personalized.

M: +39 340 487 8469 <%2B39%20340%204878469> | www.contentwise.tv

Skype: dennismorello

Via Schiaffino 11, 20158 Milano - Italy