Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
bug fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
erinz2020 committed Nov 29, 2023
1 parent 0946ee7 commit 5659dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/fields/edit/LocationIdEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export default function LocationIdEditor(props) {

const select = (event) => {
const dropdown = document.querySelector('#treeViewDemo');
if(event.target.classList.contains('MuiSvgIcon-root') ||
if(event.target?.classList?.contains('MuiSvgIcon-root') ||
dropdown.contains(event.target) ||
event.target.parentNode.classList.contains('MuiSvgIcon-root')
event.target?.parentNode?.classList?.contains('MuiSvgIcon-root')
) {
setModalOpen(true);
}else {
Expand Down

0 comments on commit 5659dcf

Please sign in to comment.