@majoo-ui/react 1.59.6-rc.7 → 1.59.6-rc.9
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/index.esm.js +5 -0
- package/index.umd.js +5 -0
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -11661,6 +11661,9 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
11661
11661
|
const [openOptions, setOpenOptions] = useState(false);
|
|
11662
11662
|
const selectBoxRef = useRef(null);
|
|
11663
11663
|
const scrollerRef = useRef(null);
|
|
11664
|
+
useEffect(() => {
|
|
11665
|
+
console.log('DEBUG-COMPONENT-INPUT-SELECT: ', '1.59.6-rc.8');
|
|
11666
|
+
}, []);
|
|
11664
11667
|
const handleInputValue = (value, isReset = false) => {
|
|
11665
11668
|
if (onSearch && !isReset) onSearch(value);
|
|
11666
11669
|
if (fetchData) return;
|
|
@@ -11755,8 +11758,10 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
11755
11758
|
selectedItem: selectedValue !== undefined ? selectedValue : null,
|
|
11756
11759
|
onSelect: (selectedItem, _) => setSelectedValue(selectedItem),
|
|
11757
11760
|
onStateChange: state => {
|
|
11761
|
+
console.log('DEBUG-STATE: ', state);
|
|
11758
11762
|
if (state && state.type === '__autocomplete_mouseup__' && 'inputValue' in state) {
|
|
11759
11763
|
handleInputValue(String(state.inputValue ? state.inputValue : '').toLowerCase());
|
|
11764
|
+
debugger;
|
|
11760
11765
|
}
|
|
11761
11766
|
if (!('isOpen' in state)) return;
|
|
11762
11767
|
if (state.isOpen && embedSearch) handleInputValue('', true);
|
package/index.umd.js
CHANGED
|
@@ -11782,6 +11782,9 @@
|
|
|
11782
11782
|
setOpenOptions = _x[1];
|
|
11783
11783
|
var selectBoxRef = React.useRef(null);
|
|
11784
11784
|
var scrollerRef = React.useRef(null);
|
|
11785
|
+
React.useEffect(function () {
|
|
11786
|
+
console.log('DEBUG-COMPONENT-INPUT-SELECT: ', '1.59.6-rc.8');
|
|
11787
|
+
}, []);
|
|
11785
11788
|
var handleInputValue = function handleInputValue(value, isReset) {
|
|
11786
11789
|
if (isReset === void 0) {
|
|
11787
11790
|
isReset = false;
|
|
@@ -11900,8 +11903,10 @@
|
|
|
11900
11903
|
return setSelectedValue(selectedItem);
|
|
11901
11904
|
},
|
|
11902
11905
|
onStateChange: function (state) {
|
|
11906
|
+
console.log('DEBUG-STATE: ', state);
|
|
11903
11907
|
if (state && state.type === '__autocomplete_mouseup__' && 'inputValue' in state) {
|
|
11904
11908
|
handleInputValue(String(state.inputValue ? state.inputValue : '').toLowerCase());
|
|
11909
|
+
debugger;
|
|
11905
11910
|
}
|
|
11906
11911
|
if (!('isOpen' in state)) return;
|
|
11907
11912
|
if (state.isOpen && embedSearch) handleInputValue('', true);
|