question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`order` field is ignored when `menu` is specified

See original GitHub issue

Bug Report

Describe the bug

order field is ignored when menu is specified

To Reproduce

see https://github.com/sw-yx/fresh-concurrent-react/tree/docz deployed at https://concurrent-react.netlify.com/

image

when i add an order key to my docs in the api section, nothing moves around

In order to allow us to quickly reproduce you issue please include a link to a reproduction repository.

Expected behavior

order should be respected inside menu, and should go in ascending order

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
sag1vcommented, Sep 9, 2019

@kylealwyn I was able to finally get it working as expected.
I’m not sure how exactly you want to order your menu but in your case i think it needs to be something like this:

export default {
  menu: [
    'Introduction', // auto ordered menu "Introduction"
    {
      name: 'Guides', // manually oredered menu "Guides"
      menu: ['Theming'] // oredered items for "Guides"
    },
    {
      name: 'Components',  // manually oredered menu "Components"
      menu: ['Grid'] // // oredered items for "Components"
    }
  ]
}

You can see an example i made

2reactions
kylealwyncommented, Oct 16, 2018

I’ve tried using the new menu config option like so, but moving the options around in any order does not affect menu layout as desired.

// doczrc.js

export default {
  ...
 menu: [['Introduction'], ['Guides', ['Theming']], ['Components', ['Grid']]],
  ...
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to ensure a <select> form field is submitted when it is ...
The first parameter can be an id or a jquery element; the second is a Boolean optional parameter where "true" disables and "false"...
Read more >
order - CSS: Cascading Style Sheets - MDN Web Docs
The order CSS property sets the order to lay out an item in a flex or grid container. Items in a container are...
Read more >
Sort records in custom order - Microsoft Support
On the Home tab, in the Sort & Filter group, click Advanced and then click Advanced Filter/Sort on the shortcut menu. Add the...
Read more >
Item Filters - How to accept or ignore specific products
Filter Order - Any order with an order line caught by the filter will be completely refused by Integration Manager and will not...
Read more >
Reference: Block elements - Slack API
Each time a menu of this type is opened or the user starts typing in the typeahead field, we'll send a request to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found