mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-16 08:52:17 +00:00
Added exitence checks (#9383)
This commit is contained in:
parent
83353f6481
commit
47ab8f2073
1 changed files with 2 additions and 2 deletions
|
|
@ -623,8 +623,8 @@ export default {
|
|||
|
||||
if (target.tagName === 'A') return; // clicked on a link
|
||||
|
||||
const isDropdown = this.$refs.taskDropdown.$el.contains(target);
|
||||
const isEditAction = this.$refs.editTaskItem.contains(target);
|
||||
const isDropdown = this.$refs.taskDropdown && this.$refs.taskDropdown.$el.contains(target);
|
||||
const isEditAction = this.$refs.editTaskItem && this.$refs.editTaskItem.contains(target);
|
||||
|
||||
if (isDropdown && !isEditAction) return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue