question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Console error while using BVTooltips in IE11 - Object doesn't support property or method 'contains'

See original GitHub issue

Error while using tooltips

In IE11 “document.contains” is not supported. Should be replaced with “document.body.contains”. Could you please correct this?

Code snippet

In bv-tooltip.js the following code is causing the console error:

    this.$nextTick(() => {
      const target = this.getTarget()
      if (target && document.contains(target)) {
        // Copy the parent's scoped style attribute
        this.scopeId = getScopId(this.$parent)
        // Set up all trigger handlers and listeners
        this.listen()
      } else {
        /* istanbul ignore next */
        warn(`${this.templateType} unable to find target element in document`)
      }
    })

Versions

Libraries:

  • BootstrapVue: 2.0.0
  • Bootstrap: 4.3.1
  • Vue: 2.5.2

Environment:

  • Browser: IE11

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
tmorehousecommented, Sep 11, 2019

Thanks for finding this… we should have it fixed in v2.0.1 (hopefully coming out later this week)

4reactions
ReneS1991commented, Sep 11, 2019

Great to hear a fix will be included soon. We use it in one of our projects for which we have a release next week so would be more than great if v2.0.1 can be released this week 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

IE11 - Object doesn't support property or method 'contains'
This error is from an SVGElement not having that method. Same code in Chrome works. Seems like I need to polyfill for this...
Read more >
Cognos Analytics 11.0 Fix Lists - IBM
A comprehensive list of defect corrections for major releases, refresh packs and fix packs of Cognos Analytics 11.0.x.0 Details of the APARs ...
Read more >
Release Notes | Ext JS 6.0.0 - Sencha Documentation
EXTJS-19511 The column's editor config may now be configured with a "field" property. If this is the case, the editor config is used...
Read more >
Changelog for WYSIWYG Editor - Froala
Fixed, the width on the image tag doesn't change when adjusting the size of ... in IE11 browser; Fixed issue IE11: Object doesn't...
Read more >
Dynamic Forms for SharePoint: Now with field tooltip
Added an option to include an overlay with “Loading, please wait… ... Message: Object doesn't support this property or method. Line: 2926
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found