From b1df2e8ca703a4a9b4c8fafff79879d9f3a64a41 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Wed, 16 Nov 2022 12:26:36 +0000
Subject: [PATCH] remove autofocus polyfill, fixes #1784

Closes #1784

Merge request studip/studip!1168
---
 resources/assets/javascripts/bootstrap/application.js | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/resources/assets/javascripts/bootstrap/application.js b/resources/assets/javascripts/bootstrap/application.js
index f7fde470700..5dd746fdf8f 100644
--- a/resources/assets/javascripts/bootstrap/application.js
+++ b/resources/assets/javascripts/bootstrap/application.js
@@ -79,11 +79,6 @@ STUDIP.domReady(function () {
 
     STUDIP.study_area_selection.initialize();
 
-    // autofocus for all browsers
-    if (!("autofocus" in document.createElement("input"))) {
-        jQuery('[autofocus]').first().focus();
-    }
-
     if (document.createElement('textarea').style.resize === undefined) {
         jQuery('textarea.resizable').resizable({
             handles: 's',
-- 
GitLab