Comparing version 1.0.48 to 1.0.49
@@ -216,3 +216,2 @@ "use strict"; | ||
}; | ||
console.log(selectedItems); | ||
return (react_1.default.createElement("div", { className: fullWidth ? 'fullWidth' : 'autoWidth', ref: dropdownRef }, | ||
@@ -219,0 +218,0 @@ label && (react_1.default.createElement("div", { style: { |
@@ -88,12 +88,10 @@ "use strict"; | ||
}); }; | ||
// useEffect(() => { | ||
// if (dropOpen && !isMultiple && (!inputValue || suggestions.length === 0)) { | ||
// handlePickSuggestions('', paginationEnabled ? 1 : undefined); | ||
// } else if (isMultiple && suggestions.length === 0 && dropOpen) { | ||
// handlePickSuggestions('', paginationEnabled ? 1 : undefined); | ||
// } | ||
// }, [dropOpen]); | ||
(0, react_1.useEffect)(function () { | ||
if (dropOpen && suggestions.length === 0 && (!inputValue || isMultiple)) { | ||
handlePickSuggestions('', paginationEnabled ? 1 : undefined); | ||
if (dropOpen) { | ||
if (!isMultiple && (!inputValue || suggestions.length === 0)) { | ||
handlePickSuggestions('', paginationEnabled ? 1 : undefined); | ||
} | ||
else if (isMultiple && suggestions.length === 0) { | ||
handlePickSuggestions('', paginationEnabled ? 1 : undefined); | ||
} | ||
} | ||
@@ -100,0 +98,0 @@ }, [dropOpen]); |
{ | ||
"name": "qbs-core", | ||
"version": "1.0.48", | ||
"version": "1.0.49", | ||
"description": "React Components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -61,12 +61,9 @@ import { useEffect, useState } from 'react'; | ||
// useEffect(() => { | ||
// if (dropOpen && !isMultiple && (!inputValue || suggestions.length === 0)) { | ||
// handlePickSuggestions('', paginationEnabled ? 1 : undefined); | ||
// } else if (isMultiple && suggestions.length === 0 && dropOpen) { | ||
// handlePickSuggestions('', paginationEnabled ? 1 : undefined); | ||
// } | ||
// }, [dropOpen]); | ||
useEffect(() => { | ||
if (dropOpen && suggestions.length === 0 && (!inputValue || isMultiple)) { | ||
handlePickSuggestions('', paginationEnabled ? 1 : undefined); | ||
if (dropOpen) { | ||
if (!isMultiple && (!inputValue || suggestions.length === 0)) { | ||
handlePickSuggestions('', paginationEnabled ? 1 : undefined); | ||
} else if (isMultiple && suggestions.length === 0) { | ||
handlePickSuggestions('', paginationEnabled ? 1 : undefined); | ||
} | ||
} | ||
@@ -73,0 +70,0 @@ }, [dropOpen]); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108082
2244