🌐 AI搜索 & 代理 主页
Skip to content

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

@ekilin

Description

@ekilin

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions