Hello.
What I’m looking for is to run the Search function when the device’s enter key is pressed but I can’t do it. If with onIonChange I can filter the words
What event is necessary to use to detect the enter on the device?
const Search = () =>{
//do something
}
const Words = (value:any) =>{
//do something
}
return(
<>
<IonSearchbar debounce={500} type="text" onIonChange={e => {Words(e.detail.value!)}} onIonInput={ Search} ></IonSearchbar>
</>
)
};
1 post - 1 participant