 this._activeOptionId = newActiveOption.id;
          this.activeIndex = index;

          if (shouldScroll) {
            const optgroup = newActiveOption.closest('[role="group"]');
            if (optgroup) {
              const groupOptions = Array.from(
                optgroup.querySelectorAll('[role="option"]')
              );

              if (
                groupOptions.length > 0 &&
                groupOptions[0] === newActiveOption
              ) {
                const groupLabel = optgroup