mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Fix typerror cannot read property of null
``` > x = null null > x?.contains undefined > x.contains Uncaught TypeError: Cannot read property 'contains' of null ``` See: https://github.com/ansible/awx/issues/11582
This commit is contained in:
parent
76cfd7784a
commit
ba035efc91
@ -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