@codacy/ui-components 0.61.10 → 0.61.12
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/lib/Dropdown/Dropdown.js +1 -1
- package/package.json +1 -1
package/lib/Dropdown/Dropdown.js
CHANGED
|
@@ -103,7 +103,7 @@ export var Dropdown = function Dropdown(_ref) {
|
|
|
103
103
|
open: open,
|
|
104
104
|
'aria-haspopup': 'true',
|
|
105
105
|
'aria-expanded': open.toString()
|
|
106
|
-
}), containerElement ? ReactDOM.createPortal(content, containerElement) : content));
|
|
106
|
+
}), open && (containerElement ? ReactDOM.createPortal(content, containerElement) : content)));
|
|
107
107
|
};
|
|
108
108
|
export var useDropdownContext = function useDropdownContext() {
|
|
109
109
|
var dropdownContext = useContext(DropdownContext);
|