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