Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SingleSelect timeout on change causes problems for tests running on browsers #820

Open
henrikjl opened this issue Jan 8, 2024 · 0 comments

Comments

@henrikjl
Copy link

henrikjl commented Jan 8, 2024

Expected Behavior or Possible Solution

SingleSelect should not steal back focus if user has already moved on after selecting a value.

Actual Behavior and Screenshots

Focus is brought back to the SingleSelect component after a timeout. I think it's because of SingleSelect.tsx row 321:

private focusToInputAndSelectText = () => {
    if (!!this.filterInputRef && this.filterInputRef.current) {
      this.filterInputRef.current.focus();
      setTimeout(() => this.filterInputRef.current?.select(), 100);
    }
  };

Steps to Reproduce the Problem

I'm currently working in the PTV team so you can reach out to me to discuss if more information is needed.

Specifications

  • Version: 12.0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant