MCPcopy
hub / github.com/shipshapecode/shepherd / _teardownElements

Method _teardownElements

shepherd.js/src/step.ts:440–455  ·  view source on GitHub ↗

* Internal cleanup that tears down the tooltip, component, and DOM element * without emitting the public "destroy" event. * @private

()

Source from the content-addressed store, hash-verified

438 * @private
439 */
440 _teardownElements() {
441 destroyTooltip(this);
442
443 if (this.shepherdElementComponent) {
444 this.shepherdElementComponent.cleanup();
445 this.shepherdElementComponent = undefined;
446 }
447
448 if (isHTMLElement(this.el)) {
449 this.el.remove();
450 this.el = null;
451 }
452
453 this._updateStepTargetOnHide();
454 this._originalTabIndexes.clear();
455 }
456
457 /**
458 * Returns the tour for the step

Callers 2

destroyMethod · 0.95
updateStepOptionsMethod · 0.95

Calls 3

destroyTooltipFunction · 0.90
isHTMLElementFunction · 0.90

Tested by

no test coverage detected