Hi Vipa Group team,
Greetings from Syncfusion support.
We have created a sample based on requirement , Kindly refer it for your reference. And we can get the value of the component using change event , It will return the value whenever the value get changed in the combobox component.
|
const OnChange = (e) => {
console.log(e.value);
};
return (
<ComboBoxComponent
id="combo-element"
fields={{ text: "name", value: "value" }}
dataSource={data}
value={selected}
change={OnChange}
allowFiltering={true}
placeholder="Select a type"
ref={selectRef}
/>
);
|
Thanks,
Deepak R.