Added onfocus, fixed autosearch clearing itself on widget reload

This commit is contained in:
2022-05-14 12:55:02 +02:00
parent f3988753d5
commit 53f799c22f
7 changed files with 34 additions and 7 deletions

View File

@@ -13,6 +13,7 @@ export interface AutosearchProps<Style> {
autoFocus: EditableValue<boolean>;
onChange?: ActionValue;
onEnter?: ActionValue;
onLeave?: ActionValue;
}
export interface AutosearchPreviewProps {
@@ -23,4 +24,5 @@ export interface AutosearchPreviewProps {
autoFocus: string;
onChange: {} | null;
onEnter: {} | null;
onLeave: {} | null;
}