Angular actions menu does not close after clicking action

Bug #1560313 reported by Justin Pomeroy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
New
Low
Unassigned

Bug Description

I'm not sure when this started but I noticed today that the angular actions menu does not close on its own after clicking on an action. You need to click somewhere else on the page for the menu to close itself.

Tags: angularjs
Revision history for this message
Daniel Castellanos (luis-daniel-castellanos) wrote :

Steps to reproduce?

Revision history for this message
Justin Pomeroy (jpomero) wrote :

You need an angular table with multiple actions so there is a dropdown menu. Then just perform any of the actions in the dropdown. The angular Images table is probably the most convenient place to reproduce. You would have to make sure it's enabled in the plugin file. To do that:

- Edit openstack_dashboard/enabled/_1051_project_ng_images_panel.py
- Set DISABLED = False
- Re-launch your server

This would give you a second Images panel under the Project dashboard which is the angular version of the Images panel.

Changed in horizon:
importance: Undecided → Low
tags: added: angularjs
Changed in horizon:
milestone: none → ongoing
status: New → Confirmed
Revision history for this message
Thai Tran (tqtran) wrote :

Hi Justin, I do notice the bug you speak of. All of the actions pop up a modal dialog. Once you click somewhere in the modal (cancel for example) the dropdown closes. Has this always been the default behavior? or is this something new?

Revision history for this message
Justin Pomeroy (jpomero) wrote :

I feel like this must have been a recent change but I don't think I have any way of really knowing if that's true. It's possible the angular actions menu has always behaved this way and I just never noticed.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/299554

Changed in horizon:
assignee: nobody → Justin Pomeroy (jpomero)
status: Confirmed → In Progress
Changed in horizon:
milestone: ongoing → next
Revision history for this message
Matt Borland (palecrow) wrote :

I've recently looked at this and see the behavior, for example at https://review.openstack.org/#/c/316244/ if you select an action that is in the drop-down portion. I'm not sure if this is really a bad thing or not, but I can agree that it exists.

Revision history for this message
Matt Borland (palecrow) wrote :

So far, it seems like we aren't quite encapsulating our dropdowns in the way that is suggested, at least in the developer panel. We seem to glom the lead button into a single btn-group, rather than having the caret be in its own btn-group. That might be part of the problem.

Revision history for this message
Matt Borland (palecrow) wrote :

e.g. the split button doesn't look quite right: https://github.com/openstack/horizon/blob/master/horizon/static/framework/widgets/action-list/split-button.html

It has two peer buttons, where the dev panel does not.

Revision history for this message
Richard Jones (r1chardj0n3s) wrote :

Is there an instance of the drop-down not going away at all once an action is selected (and any action has been taken)?

Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

Removing assignee due to inactivity

Changed in horizon:
status: In Progress → New
assignee: Justin Pomeroy (jpomero) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Rob Cresswell (<email address hidden>) on branch: master
Review: https://review.openstack.org/299554
Reason: Abandoning for now, hasn't been updated in 4 months. Feel free to restore and update if you get time to work on the patch. Thanks!

Changed in horizon:
assignee: nobody → puja (pujachowdhary)
Changed in horizon:
assignee: PujaChowdhary (pujachowdhary) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.