Dropdown gets ugly when "selection" attribute is missing.
See original GitHub issuethe 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:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ManuelPereira2016 technically, I think you can just add
className='selection'
to yourDropdown
component to get the missing class and styles.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.