How do I disable dynamic menu/state #1676
-
Help WantedI'm building a static site with Fomantic-UI. When I created my menus, but before I wired them up to links, I noticed that the text of the dropdown link item changed when one of the submenu items was selected. Neat! But since I'm not using anything that preserves state, that change is not sustained, now that the links take you to a new page. I'm fine with that, but I don't like how the text changes briefly before the browser loads the new page. I would like to eliminate that change altogether. Or, if there's a way to maintain that change on the new page, I'd be fine with that too. Testcase |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
If i understand correctly, that can be solved adding an input and a value to that input: https://jsfiddle.net/TheJltres/0po1stgy/1/ PS: I tried with Behavior 'set selected' but i couldn't get it to work |
Beta Was this translation helpful? Give feedback.
-
@gwyndall If you don't want to update the current text when you click the menu item. You can use
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:
Is that what you're looking for? |
Beta Was this translation helpful? Give feedback.
-
If the dropdown entries should link to a new webpage immediatly, as @ko2in example, you could even use |
Beta Was this translation helpful? Give feedback.
-
Thank you! @ko2in, that's exactly what I needed. |
Beta Was this translation helpful? Give feedback.
@gwyndall If you don't want to update the current text when you click the menu item. You can use
action
property withselect
in dropdown settings.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: