Skip to content

Commit

Permalink
all the components were getting scrolled when clicked, fix
Browse files Browse the repository at this point in the history
  • Loading branch information
barshatr committed Oct 18, 2023
1 parent 3c45dde commit 16c7e99
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ui.frontend/src/view/FormField.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,9 @@ class FormField {
setActive() {
if (!this.isActive()) {
this.element.setAttribute(Constants.DATA_ATTRIBUTE_ACTIVE, true);
this.element.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
if (this.parentView && this.parentView.setActive) {
this.parentView.setActive();
this.element.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
}

Expand Down

0 comments on commit 16c7e99

Please sign in to comment.