forked from Semantic-Org/Semantic-UI-React
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Dropdown): Fix missing rendering of icons in selection mode
Closes Semantic-Org#4346
- Loading branch information
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
docs/src/examples/modules/Dropdown/Types/DropdownExampleSearchSelectionIcon.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
const packageManagersOptions = [ | ||
{ key: 'gem', value: 'gem', icon: 'gem', text: 'RubyGems' }, | ||
{ key: 'npm', value: 'npm', icon: 'npm', text: 'NPM' }, | ||
{ key: 'docker', value: 'docker', icon: 'docker', text: 'Docker' }, | ||
] | ||
|
||
const DropdownExampleSearchSelection = () => ( | ||
<Dropdown | ||
placeholder='Select Package Manager' | ||
fluid | ||
search | ||
selection | ||
options={packageManagersOptions} | ||
/> | ||
) | ||
|
||
export default DropdownExampleSearchSelection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters