diff --git a/components/Select/Basic/index.js b/components/Select/Basic/index.js index 7879b50..6c93e96 100644 --- a/components/Select/Basic/index.js +++ b/components/Select/Basic/index.js @@ -6,6 +6,7 @@ import { getLabelName } from "../../../utils"; */ function BasicSelect(props) { const { + onChange, onGetLabel, placeholder = "", data = [], @@ -14,11 +15,12 @@ function BasicSelect(props) { ...restProps } = props; - const handleChange = (event) => { + const handleChange = (event, option) => { if (event) onGetLabel?.(getLabelName({ list: data, status: event, idKey, nameKey })); else onGetLabel?.(""); + onChange?.(event, option); }; return (