ar-design 0.2.19 → 0.2.20
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.
|
@@ -6,7 +6,7 @@ import Chip from "../../data-display/chip";
|
|
|
6
6
|
import Checkbox from "../checkbox";
|
|
7
7
|
import Utils from "../../../libs/infrastructure/shared/Utils";
|
|
8
8
|
import ReactDOM from "react-dom";
|
|
9
|
-
const Select = ({ variant = "outlined", status, border = { radius: "sm" }, options, value, onChange, onClick, onCreate, multiple, placeholder, validation, upperCase, disabled, }) => {
|
|
9
|
+
const Select = ({ variant = "outlined", status, border = { radius: "sm" }, options, value, onChange, onSearch, onClick, onCreate, multiple, placeholder, validation, upperCase, disabled, }) => {
|
|
10
10
|
const _selectionClassName = ["selections"];
|
|
11
11
|
// refs
|
|
12
12
|
const _arSelect = useRef(null);
|
|
@@ -219,6 +219,8 @@ const Select = ({ variant = "outlined", status, border = { radius: "sm" }, optio
|
|
|
219
219
|
optionItems[_navigationIndex.current]?.classList.add("navigate-with-arrow-keys");
|
|
220
220
|
// Yeniden konumlandır.
|
|
221
221
|
setTimeout(() => handlePosition(), 0);
|
|
222
|
+
// Aramayı bileşen dışında kullanmak için dışarı aktarım metodu.
|
|
223
|
+
onSearch && onSearch(searchText);
|
|
222
224
|
}, [searchText]);
|
|
223
225
|
useEffect(() => {
|
|
224
226
|
// Seçilen öğeye 'navigate-with-arrow-keys' sınıfını ekle
|