Semantic-Org / Semantic-UI

Semantic is a UI component framework based around useful principles from natural language.
http://www.semantic-ui.com
MIT License
51.1k stars 4.95k forks source link

[Dropdown] Marking dropdown menu item as active prevents it from being expanded #2978

Open Neaox opened 9 years ago

Neaox commented 9 years ago

If you have a menu that contains a dropdown menu item and you mark that item as active (to indicate that it is the current area/page) then you are unable to expand/click on that item.

See this fiddle for an example: https://jsfiddle.net/52m76fzc/1/

Clicking on the active item does nothing clicking on the item next to it expands the dropdown item.

The expected behaviour is that you should be able to mark an item as the active/current item while still being able to expand it.

v3rron commented 9 years ago

same problem here... when it's selected as active, the menu just opens and closes instantly in a moment

paglias commented 7 years ago

Any alternative until this gets fixed?

jclee100 commented 7 years ago

It's a conflict between menu item's active and dropdown's active. Perhaps dropdown's active should be renamed open.

zaurbek commented 7 years ago

@komirad I agree with you. active should be renamed to open

Billybobbonnet commented 7 years ago

Is there an existing class name to mark a menu dropdown item as active (as opposed to open), or should I write my own to achieve that?

Billybobbonnet commented 7 years ago

Actually, I just made a quick and dirty set of rules for the current class keyword in order to highlight active menu dropdowns. Tested for inverted menus with both secondary variation and none.

.menu:not(.secondary) .dropdown.item.current{
  background: rgba(255,255,255,.15);
  color: #fff !important;
}
.menu:not(.secondary) .dropdown.item.current:after{
visibility: visible!important;
z-index: 100!important;
background: #3d3e3f !important;
margin: 0 !important;
box-shadow: none !important;
border: none !important;
}
.menu.inverted .dropdown.item.current{
border-color: #fff;
}
stale[bot] commented 6 years ago

There has been no activity in this thread for 90 days. While we care about every issue and we’d love to see this fixed, the core team’s time is limited so we have to focus our attention on the issues that are most pressing. Therefore, we will likely not be able to get to this one.

However, PRs for this issue will of course be accepted and welcome!

If there is no more activity in the next 90 days, this issue will be closed automatically for housekeeping. To prevent this, simply leave a reply here. Thanks!

mehranabi commented 6 years ago

No - Do not close it !!! I have same problem!

salaros commented 6 years ago

+1

WilliamT-Streamba commented 5 years ago

+1

nosson commented 5 years ago

I am having the same issue.

atgrau commented 5 years ago

Same problem here, any solution?

BlackTomm commented 4 years ago

just write in below format can work properly without affecting dropdown

<div class="item active">
       <div class="ui dropdown link">your code</div>
</div>