sir-dunxalot / ember-tooltips

Easy and extendible tooltips for Ember components - http://sir-dunxalot.github.io/ember-tooltips/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IE 11 - Not working due to js errors

thamsrang opened this issue · comments

commented

Hi,
There are JS error occurred in IE11 browser.

  1. When tooltip creating.
    Error occurred in ember-tooltip-base.js at line no. 407
Unhandled promise rejection TypeError: Unable to get property 'add' of undefined or null reference
  1. When tooltip component destroying.
    Error occurred in ember-tooltip-base.js at line no. 263
Unable to get property 'dispose' of undefined or null reference

@thamsrang IE 11 should support classList just fine. I think these errors may indicate that the target of the tooltip (usually the parent element) doesn't exist by the time it does the setup for the tooltip. are you passing targetId to the tooltip or moving it around the DOM somehow?

commented

@maxfierke Thanks for quick response. I am passing @targetId to <EmberTooltip>.
How to avoid these errors ?

@thamsrang You need to make sure the element specified by targetId exists when the <EmberTooltip> is rendered

commented

@maxfierke What about second error ?

@thamsrang that's probably related to the first error where the tooltip wasn't able to attach itself to the target

commented

Thanks for your comment. Working fine.