Skip to content

How do I disable dynamic menu/state #1676

Discussion options

You must be logged in to vote

@gwyndall If you don't want to update the current text when you click the menu item. You can use action property with select in dropdown settings.

$('.ui.dropdown').dropdown({
  action: 'select'
});

It won't change the text, and you'll reach to the URL that you specify for your menu item. See fiddle (https://jsfiddle.net/ko2in/htLbewcg/5/).

Since, you're creating the static site, then you can just set the appropriate text for your dropdown menu in that HTML page. Example in the HTML page for 'Item 1' link:

<div class="ui dropdown link item">
  <span class="text" role="group">Item 1</span>
  <i class="dropdown icon"></i>
  <div class="menu submenu">
    <div class="header">Services</div>
…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lubber-de
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1676 on October 06, 2020 21:43.