ng-select icon indicating copy to clipboard operation
ng-select copied to clipboard

Focus not going next element in IE

Open shuaibabdulla opened this issue 6 years ago • 4 comments

In chrome, focus is going to the next element, but in ie it's going to different select component

shuaibabdulla avatar May 26 '19 09:05 shuaibabdulla

Which IE version is that?

Could you also please explain in more detail the observed and expected behavior? Do you mean changing the focus by pressing the Tab key? What do you mean with 'next element' and 'different select component'?

basvandenberg avatar May 27 '19 17:05 basvandenberg

image On focus, it was not opening.

Once it was opened as below

image

focus is coming correct but after that clicking the tab it was going to the next input element in chrome and not in ie11.

reference focus comming.

image

shuaibabdulla avatar May 30 '19 05:05 shuaibabdulla

I have done a code to open on focus.

  setTimeout(() => {
      let elementsWithOpenClass = this.element.nativeElement.getElementsByClassName('open');

      if (!elementsWithOpenClass || elementsWithOpenClass.length == 0) {
        let element: HTMLElement = this.element.nativeElement.getElementsByClassName('toggle')[0] as HTMLElement;
        if (element) {
          console.log('inside focus. clcik');
          element.click();
          /!*setTimeout(() => {
            let inputElement = this.element.nativeElement.getElementsByTagName('input')[0] as HTMLElement;
            if(inputElement) {
              inputElement.tabIndex = 0;
            }
          },100);*!/

        }
      }
    }, 200);

after this on focus select option get opened.

shuaibabdulla avatar May 30 '19 05:05 shuaibabdulla

In ie 11 once the tab is pressed the focus is not going to next input element

shuaibabdulla avatar May 30 '19 05:05 shuaibabdulla