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

[Editor] The focus() method of the Editor does not scroll the component into view #4312

Closed
zstoyanova9 opened this issue May 23, 2024 · 1 comment

Comments

@zstoyanova9
Copy link

Describe the bug
When using the focus() method to programmatically focus the Editor, the component does not get scrolled into view in cases when it is out of the viewport.

To Reproduce

  1. Open the following StackBlitz example - https://stackblitz.com/edit/angular-k3rrm8
  2. Click the "Focus the Editor" button.

Expected behavior
The Editor should not only be focused, but also scrolled into the view.

Workaround
Use editor.view.dom.focus(); to focus the Editor component instead.
Example with workaround - https://stackblitz.com/edit/angular-k3rrm8-m6may1

@slavenai
Copy link

Fixed in v16.3.0 of kendo-angular-editor package.

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

No branches or pull requests

3 participants