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.

Dropdown gets ugly when "selection" attribute is missing.

See original GitHub issue

the border is missing, there’s no minimum width for input or placeholder, etc. any quick fixes?

I’m doing something like this

       <Dropdown placeholder='Select Baskets..' search className={styles.root}>
          <Dropdown.Menu>
            { this.props.values.map((option) => 
              <Dropdown.Item key={option.value} >
                <Icon name='attention' className='right floated' />
                 {option.text}
              </Dropdown.Item>
              )}
          </Dropdown.Menu>
        </Dropdown>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
brianespinosacommented, Nov 20, 2018

@ManuelPereira2016 technically, I think you can just add className='selection' to your Dropdown component to get the missing class and styles.

0reactions
mpereiraesaacommented, Nov 20, 2018

How to avoid this warning where you are intentionally choosing to add selection prop and doing your own options management rendering Dropdown.Items with his owns onClick etc, because its always screaming the warning message but we are already managing our own state and data inside the Dropdown, there should be a way where you can make this appear as a select but behave like you wanted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap 4: Dropdown menu is going off to the right of the ...
If the menu move to the left or the right of the page and is not under the button, it is because you...
Read more >
Grid with a custom DropDownList as an editor not ... - Telerik
They function perfectly, but once I select a value and move onto the next column...the DropDownList and the selected value for it disappears...the ......
Read more >
Create A Dropdown With An Other Option In Power Apps
Dropdown menus allow app users to select a pre-defined value from a list of options. But sometimes you want the user to fill-in...
Read more >
I Can't Select an Option from a Drop-down List - iMacros Forum
Selecting from a Dropdown is very simple. All you have to do is use the "value" attribute of the <option> element under the...
Read more >
So You Need To Fill a Dropdown Dynamically | CSS-Tricks
You have one dropdown menu, and depending on the user's choice in that one, a second dropdown gets filled with choices.
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