Console error while using BVTooltips in IE11 - Object doesn't support property or method 'contains'
See original GitHub issueError 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:
- Created 4 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for finding this… we should have it fixed in v2.0.1 (hopefully coming out later this week)
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 😄