mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 02:31:03 -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:
@@ -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