Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Cannot read property 'contains' of undefined #80

Closed
dimensi opened this issue Dec 6, 2017 · 2 comments
Closed

BUG: Cannot read property 'contains' of undefined #80

dimensi opened this issue Dec 6, 2017 · 2 comments
Labels

Comments

@dimensi
Copy link

dimensi commented Dec 6, 2017

v-tooltip.esm.js?455e:4237 Uncaught TypeError: Cannot read property 'contains' of undefined
    at VueComponent.$_handleGlobalClose (v-tooltip.esm.js?455e:4237)
    at VueComponent.boundFn [as $_handleGlobalClose] (vue.esm.js?65d7:181)
    at handleGlobalClose (v-tooltip.esm.js?455e:4285)
    at handleGlobalClick (v-tooltip.esm.js?455e:4274)

v-popover

    <v-popover trigger="manual"
               ref="popup"
               :open="openPopup"
               @auto-hide="closePopup"
               v-if="currentSkin"
               :key="currentSkin.id">
      <div class="lots-roulette__weapon" v-if="currentSkin" slot="popover">
        <weapon-item :skin="currentSkin" type="big" :key="currentSkin.id" select></weapon-item>
        <div class="lots-roulette__name">
          {{ currentSkin.skin.first_name }} {{ currentSkin.skin.last_name }}
        </div>
      </div>
    </v-popover>
    async displayPopup(skin, event) {
      this.openPopup = false;
      if (this.$refs.popup) {
        this.$refs.popup.$refs.trigger = null;
      }
      await this.$nextTick();
      this.$refs.popup.$refs.trigger = event.target;
      this.openPopup = true;
    },
@mesutgok
Copy link

mesutgok commented Dec 7, 2017

i have same problem

Uncaught TypeError: Cannot read property 'contains' of undefined at VueComponent.$_handleGlobalClose (v-tooltip.esm.js?455e:4237) at VueComponent.boundFn [as $_handleGlobalClose] (vue.esm.js?65d7:178) at handleGlobalClose (v-tooltip.esm.js?455e:4285) at handleGlobalClick (v-tooltip.esm.js?455e:4274) $_handleGlobalClose @ v-tooltip.esm.js?455e:4237 boundFn @ vue.esm.js?65d7:178 handleGlobalClose @ v-tooltip.esm.js?455e:4285 handleGlobalClick @ v-tooltip.esm.js?455e:4274

@dimensi
Copy link
Author

dimensi commented Dec 12, 2017

I receive the same error if I delete an element that contains this popover.

v-tooltip.esm.js?455e:4237 Uncaught TypeError: Cannot read property 'contains' of undefined
    at VueComponent.$_handleGlobalClose (v-tooltip.esm.js?455e:4237)
    at VueComponent.boundFn [as $_handleGlobalClose] (vue.esm.js?65d7:181)
    at handleGlobalClose (v-tooltip.esm.js?455e:4285)
    at handleGlobalClick (v-tooltip.esm.js?455e:4274)

@Akryum Akryum added the bug label Jan 12, 2018
@Akryum Akryum closed this as completed in c226544 May 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants