Skip to content

Commit 540bf91

Browse files
committed
#172 removed input field for single select
1 parent 48776b5 commit 540bf91

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/multiselect/multiselect.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,9 @@ export class Multiselect extends React.Component<IMultiselectProps, any> {
557557
<input
558558
type="text"
559559
ref={this.searchBox}
560-
className="searchBox"
560+
className={`searchBox ${singleSelect && selectedValues.length ? 'display-none' : ''}`}
561561
id={`${id || 'search'}_input`}
562-
name={`${name || 'search_name'}_input`}
562+
name={`${name || 'search_name'}_input`}
563563
onChange={this.onChange}
564564
onKeyPress={this.onKeyPress}
565565
value={inputValue}

src/multiselect/styles.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
pointer-events: none;
1515
opacity: 0.5;
1616
}
17+
.display-none {
18+
display: none;
19+
}
1720
.searchWrapper {
1821
border: 1px solid #cccccc;
1922
border-radius: 4px;

0 commit comments

Comments
 (0)