Skip to content

Commit

Permalink
Merge pull request #8445 from surveyjs/revert-8440-Rating-is-changed-…
Browse files Browse the repository at this point in the history
…to-drop-down-view-on-validation-

Revert "Rating is changed to drop-down view on validation."
  • Loading branch information
dk981234 authored Jun 20, 2024
2 parents 3503372 + c168470 commit 3289262
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions packages/survey-angular-ui/test/markup/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ describe("etalon tests", () => {
imports: [SurveyModule],
}).compileComponents();
TestBed.inject(SurveyModule);
Object.defineProperty(document, "fonts", {
get: () => { return { ready: { then: () => {} } }; },
configurable: true,
});
(<any>window).ResizeObserver = function () {
return {
observe: () => {},
Expand Down
9 changes: 0 additions & 9 deletions src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4807,15 +4807,6 @@ export class SurveyModel extends SurveyElementCore
});
this.rootElement = htmlElement;
this.addScrollEventListener();

if (DomDocumentHelper.isAvailable()) {
const fonts = (DomDocumentHelper.getDocument() as any).fonts;
if (fonts) {
fonts.ready.then(() => {
this.triggerResponsiveness(true);
});
}
}
}
private processResponsiveness(width: number, mobileWidth: number): boolean {
const isMobile = width < mobileWidth;
Expand Down

0 comments on commit 3289262

Please sign in to comment.