Skip to content

Commit

Permalink
Try to fix f tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Oct 8, 2024
1 parent 41de380 commit 5d4a009
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/survey-core/src/survey-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ export class SurveyElement<E = any> extends SurveyElementCore implements ISurvey
return SurveyElement.ScrollElementToViewCore(el, false, scrollIfVisible, scrollIntoViewOptions, doneCallback);
}
public static ScrollElementToViewCore(el: HTMLElement, checkLeft: boolean, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, doneCallback?: () => void): boolean {
if (!el || !el.scrollIntoView) return false;
if (!el || !el.scrollIntoView) {
doneCallback && doneCallback();
return false;
}
const needScroll = SurveyElement.IsNeedScrollIntoView(el, checkLeft, scrollIfVisible);
if (needScroll) {
SurveyElement.ScrollIntoView(el, scrollIntoViewOptions, doneCallback);
Expand Down

0 comments on commit 5d4a009

Please sign in to comment.