mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Added exitence checks (#9383)
This commit is contained in:
committed by
Sabe Jones
parent
83353f6481
commit
47ab8f2073
@@ -623,8 +623,8 @@ export default {
|
|||||||
|
|
||||||
if (target.tagName === 'A') return; // clicked on a link
|
if (target.tagName === 'A') return; // clicked on a link
|
||||||
|
|
||||||
const isDropdown = this.$refs.taskDropdown.$el.contains(target);
|
const isDropdown = this.$refs.taskDropdown && this.$refs.taskDropdown.$el.contains(target);
|
||||||
const isEditAction = this.$refs.editTaskItem.contains(target);
|
const isEditAction = this.$refs.editTaskItem && this.$refs.editTaskItem.contains(target);
|
||||||
|
|
||||||
if (isDropdown && !isEditAction) return;
|
if (isDropdown && !isEditAction) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user