Skip to content

User Rules scrolls to top after Save, cursor position is lost #1169

@neshumov

Description

@neshumov

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I made sure all content blockers are enabled in Safari settings
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

AdGuard version

2.1.0.971 (App Store)

Environment

- OS: 26.2 (25C56)
- Safari version: 26.2 (21623.1.14.11.9)

What filters do you have enabled?

No response

Issue Details

Steps to reproduce:

  1. Open User Rules Editor
  2. Create a long list of rules (60+ lines; in my case ~300+ lines including comments)
  3. Scroll to the middle or to the end of the list
  4. Edit any rule
  5. Press Save

Expected Behavior

  • The editor preserves the scroll position
  • The cursor remains at the edited rule after saving
  • Saving does not interrupt the editing flow for long rule lists

Actual Behavior

  • After pressing Save, the editor scrolls back to the top of the list
  • Cursor position is lost
  • User has to manually scroll back to the edited rule every time

Screenshots

Screenshot 1:

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions