ngx-dynamic-entity 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4993,7 +4993,12 @@ class DynamicFormComponent {
4993
4993
  focusActivePanel() {
4994
4994
  if (typeof requestAnimationFrame !== 'function')
4995
4995
  return;
4996
- requestAnimationFrame(() => this.formPanel?.nativeElement?.focus?.());
4996
+ requestAnimationFrame(() =>
4997
+ // `preventScroll` because this focus exists to tell a screen reader the panel changed,
4998
+ // not to move the page. The default scrolls the panel into view, which on a short
4999
+ // viewport jumps the layout — enough that a Save button below it moves out from under
5000
+ // a tap. The panel sits directly beneath the tab strip and is already on screen.
5001
+ this.formPanel?.nativeElement?.focus?.({ preventScroll: true }));
4997
5002
  }
4998
5003
  /** Accessible name for the field panel — it is the tabpanel for the active tab. */
4999
5004
  get activeTabLabel() {