Skip to content

Conversation

@fahrigedik
Copy link
Member

Refactored focus logic to ensure the field is only focused when visible. Added IntersectionObserver to handle cases where the element is not immediately visible, improving accessibility and user experience.

image

Description

Resolves https://github.com/volosoft/vs-internal/issues/7593 (write the related issue number if available)

Checklist

  • I fully tested it as developer / designer and created unit / integration tests
  • I documented it (or no need to document or I will create a separate documentation issue)

How to test it?

you have to change branch rel-9.3 on volo
you have to change branch issue-7593 on abp
you have to change branch rel-4.3 on lepton
and you can run commercial test app on vs-internal

Refactored focus logic to ensure the field is only focused when visible. Added IntersectionObserver to handle cases where the element is not immediately visible, improving accessibility and user experience.
Copy link
Contributor

@sumeyyeKurtulus sumeyyeKurtulus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @fahrigedik thank you for checking this problem in the forms. However, we can call the animation frame request instead which is more straightforward and clean

 requestAnimationFrame(() => {
    this.fieldRef.nativeElement.focus();
 });

Replaces the IntersectionObserver-based focus logic with a simpler requestAnimationFrame approach for focusing the first field. This reduces complexity and potential timing issues when focusing the field after view initialization.
@yagmurcelk yagmurcelk merged commit 10b833c into rel-9.3 Nov 18, 2025
2 of 3 checks passed
@yagmurcelk yagmurcelk deleted the issue-7593 branch November 18, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants