* When a step is hidden, remove the highlightClass and 'shepherd-enabled' * and 'shepherd-target' classes * @private
()
| 807 | * @private |
| 808 | */ |
| 809 | _updateStepTargetOnHide() { |
| 810 | const target = this.target || document.body; |
| 811 | const extraHighlightElements = this._resolvedExtraHighlightElements; |
| 812 | |
| 813 | const highlightClass = this.options.highlightClass; |
| 814 | if (highlightClass) { |
| 815 | target.classList.remove(highlightClass); |
| 816 | extraHighlightElements?.forEach((el) => |
| 817 | el.classList.remove(highlightClass) |
| 818 | ); |
| 819 | } |
| 820 | |
| 821 | target.classList.remove( |
| 822 | 'shepherd-target-click-disabled', |
| 823 | `${this.classPrefix}shepherd-enabled`, |
| 824 | `${this.classPrefix}shepherd-target` |
| 825 | ); |
| 826 | extraHighlightElements?.forEach((el) => { |
| 827 | el.classList.remove( |
| 828 | 'shepherd-target-click-disabled', |
| 829 | `${this.classPrefix}shepherd-enabled`, |
| 830 | `${this.classPrefix}shepherd-target` |
| 831 | ); |
| 832 | }); |
| 833 | |
| 834 | this._restoreOriginalTabIndexes(); |
| 835 | } |
| 836 | } |
no test coverage detected