File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,9 @@ const Dropdown: React.FunctionComponent<IDropdownProps> = props => {
164164 } else {
165165 onSelect && onSelect ( changes . selectedItem , stateAndHelpers ) ;
166166 }
167+
168+ // Reset input value when item is selected
169+ stateAndHelpers . setState ( { inputValue : '' } ) ;
167170 }
168171
169172 onStateChange && onStateChange ( changes , stateAndHelpers ) ;
Original file line number Diff line number Diff line change @@ -106,13 +106,13 @@ initialState = {
106106 < / MediaItem>
107107 < Separator / >
108108 < StyledItemWrapper>
109- < Item value= " clipboard-action" >
109+ < Item value= " clipboard-action" title = " Clipboard action " >
110110 < ClipboardSvg / >
111111 < / Item>
112- < Item value= " box-action" >
112+ < Item value= " box-action" title = " Box action " >
113113 < BoxSvg / >
114114 < / Item>
115- < Item value= " database-action" >
115+ < Item value= " database-action" title = " Database action " >
116116 < DatabaseSvg / >
117117 < / Item>
118118 < / StyledItemWrapper>
You can’t perform that action at this time.
0 commit comments