 }
                this.style.visibility = "visible";

                this.focus();

                const currentValue = this.getAttribute("value");
                let initialFocusIndex = -1;
                if (currentValue) {
                  initialFocusIndex = this.getAllOptions().findIndex(
                    (o) => o.dataset.value === currentValue
                  );
                }

                if (
                  initialFocusIndex < 0 ||
                  (this.getAllOptions()[initial