@homecode/ui 4.18.60 → 4.18.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -204,6 +204,7 @@ class Select extends Component {
|
|
|
204
204
|
};
|
|
205
205
|
onSearchChange = (e, value) => {
|
|
206
206
|
this.setSearchVal(value);
|
|
207
|
+
this.props.onSeachChange?.(value);
|
|
207
208
|
};
|
|
208
209
|
onExpandClick(e, id) {
|
|
209
210
|
const { expanded } = this.store;
|
|
@@ -452,10 +453,10 @@ class Select extends Component {
|
|
|
452
453
|
const value = this.getInputVal();
|
|
453
454
|
const props = {
|
|
454
455
|
...this.getTriggerProps(),
|
|
455
|
-
...inputProps,
|
|
456
|
-
error: this.isErrorVisible(),
|
|
457
456
|
// addonLeft: this.renderSelectedItems(),
|
|
458
457
|
addonRight: this.renderTriggerArrow(),
|
|
458
|
+
...inputProps,
|
|
459
|
+
error: this.isErrorVisible(),
|
|
459
460
|
value,
|
|
460
461
|
onChange: this.onSearchChange,
|
|
461
462
|
ref: this.triggerInputRef,
|
|
@@ -46,6 +46,7 @@ export type Props = FormControl<Value> & InheritedInputProps & {
|
|
|
46
46
|
value?: Value;
|
|
47
47
|
expandSelected?: boolean;
|
|
48
48
|
onChange: (value: Value) => void;
|
|
49
|
+
onSeachChange?: (value: string) => void;
|
|
49
50
|
onOpen?: () => void;
|
|
50
51
|
onClose?: () => void;
|
|
51
52
|
isSearchable?: boolean;
|