x-ui-design 0.2.82 → 0.2.83
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.
- package/dist/index.esm.js +6 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/lib/components/Select/Select.tsx +4 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3126,6 +3126,12 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3126
3126
|
return selectRef.current ? getPopupContainer?.(selectRef.current) : selectRef.current;
|
|
3127
3127
|
}, [getPopupContainer]);
|
|
3128
3128
|
const extractedOptions = children ? (Array.isArray(children) ? children : [children]).filter(e => e).map(child => child.props) : options;
|
|
3129
|
+
useEffect(() => {
|
|
3130
|
+
console.log({
|
|
3131
|
+
filterOption,
|
|
3132
|
+
extractedOptions
|
|
3133
|
+
});
|
|
3134
|
+
}, [filterOption, extractedOptions]);
|
|
3129
3135
|
const filteredOptions = extractedOptions.filter(option => {
|
|
3130
3136
|
if (typeof filterOption === 'function') {
|
|
3131
3137
|
return filterOption(searchQuery, option);
|