Commit 50d5a0dd authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Controla enfoque de contenido no disponible

parent 65f20ab3
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -172,7 +172,14 @@ define([

			this._applyHrefValueWithoutHistory(newHref + newAnchor);

			document.querySelector(newAnchor).scrollIntoView({
			var contentSelectedElement = document.querySelector(newAnchor);

			if (!contentSelectedElement) {
				console.warn('Tried to focus non-existant content:', newAnchor);
				return;
			}

			contentSelectedElement.scrollIntoView({
				behavior: 'smooth'
			});
		}