You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue here for ember-bootstrap v4.4.0 is basically a DOM node order/timing issue.
This occurs if your use case needs to render the ember bootrap contextual help component (Example: BsTooltip) earlier in your template/DOM order than its corresponding trigger element. Some users may not have the ability to control their DOM order in all circumstances, and this would be a breaking change for them in this case when upgrading from v4.3.0 to v4.4.0
Now with v4.4.0, we execute getTriggerTargetElement in the {{did-insert this.setup}} modifier named from bs-tooltip.hbshttps://github.com/kaliber5/ember-bootstrap/blob/v4.4.0/addon/components/bs-contextual-help.js#L693. This fires inline at the exact moment in time the modifier is evaluated so anything waiting to be rendered in DOM later page order would not be rendered yet and will throw this error at runtime
Uncaught (in promise) Error: Assertion Failed: Could not find trigger element for tooltip/popover
ember app showing the issue: https://github.com/alexdiliberto/ember-bootstrap-undefined-trigger-element
The issue here for ember-bootstrap
v4.4.0
is basically a DOM node order/timing issue.This occurs if your use case needs to render the ember bootrap contextual help component (Example: BsTooltip) earlier in your template/DOM order than its corresponding trigger element. Some users may not have the ability to control their DOM order in all circumstances, and this would be a breaking change for them in this case when upgrading from
v4.3.0
tov4.4.0
previously in
v4.3.0
, we executedgetTriggerTargetElement
indidInsertElement
https://github.com/kaliber5/ember-bootstrap/blob/v4.3.0/addon/components/bs-contextual-help.js#L726, this allowed the full page to render before firing so the issue never presented itself.Now with
v4.4.0
, we executegetTriggerTargetElement
in the{{did-insert this.setup}}
modifier named frombs-tooltip.hbs
https://github.com/kaliber5/ember-bootstrap/blob/v4.4.0/addon/components/bs-contextual-help.js#L693. This fires inline at the exact moment in time the modifier is evaluated so anything waiting to be rendered in DOM later page order would not be rendered yet and will throw this error at runtimePlease help advise a solution here. Thanks!
Output from
ember bootstrap:info
:The text was updated successfully, but these errors were encountered: