Tutorial: Modals automatisch schliessen bei Zurueck-Navigation
_enterStep schliesst alle offenen Modals wenn der neue Step kein Modal-Step ist. Verhindert Blur auf Seitenleiste und haengengebliebene Modals bei Rueckwaerts-Navigation (z.B. Schritt 4 -> 2).
Dieser Commit ist enthalten in:
@@ -1374,6 +1374,17 @@ const Tutorial = {
|
|||||||
// Bei Modal-Steps: Spotlight ausblenden (Modal hat eigene Abdunkelung)
|
// Bei Modal-Steps: Spotlight ausblenden (Modal hat eigene Abdunkelung)
|
||||||
var isModalStep = step.target && (step.target.indexOf('#modal-') !== -1);
|
var isModalStep = step.target && (step.target.indexOf('#modal-') !== -1);
|
||||||
|
|
||||||
|
// Wenn kein Modal-Step: offene Modals schliessen (z.B. bei Zurueck-Navigation)
|
||||||
|
if (!isModalStep) {
|
||||||
|
['modal-new', 'modal-sources'].forEach(function(id) {
|
||||||
|
var overlay = document.getElementById(id);
|
||||||
|
if (overlay && overlay.classList.contains('active')) {
|
||||||
|
overlay.classList.remove('active');
|
||||||
|
overlay.style.zIndex = '';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (step.target && step.position !== 'center' && !isModalStep) {
|
if (step.target && step.position !== 'center' && !isModalStep) {
|
||||||
await this._scrollToTarget(step.target);
|
await this._scrollToTarget(step.target);
|
||||||
this._spotlightElement(step.target);
|
this._spotlightElement(step.target);
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren