mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 03:01:06 -03:30
Merge pull request #11668 from nixocio/ui_issue_11582
Fix typerror cannot read property of null
This commit is contained in:
@@ -12,7 +12,7 @@ function AddDropDownButton({ dropdownItems, ouiaId }) {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const toggle = (e) => {
|
const toggle = (e) => {
|
||||||
if (!isKebabified && (!element || !element.current.contains(e.target))) {
|
if (!isKebabified && (!element || !element.current?.contains(e.target))) {
|
||||||
setIsOpen(false);
|
setIsOpen(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user