From c16847036b14fb78adddd8293e97d9fd3604cbd9 Mon Sep 17 00:00:00 2001 From: Aleksey Novikov Date: Thu, 20 Jun 2024 10:28:16 +0300 Subject: [PATCH] Revert "Rating is changed to drop-down view on validation. (#8440)" This reverts commit 1e5521754b7c32e33974467d8aa170852947306d. --- packages/survey-angular-ui/test/markup/test.spec.ts | 4 ---- src/survey.ts | 9 --------- 2 files changed, 13 deletions(-) diff --git a/packages/survey-angular-ui/test/markup/test.spec.ts b/packages/survey-angular-ui/test/markup/test.spec.ts index 2b0006df80..f8fdf65a9a 100644 --- a/packages/survey-angular-ui/test/markup/test.spec.ts +++ b/packages/survey-angular-ui/test/markup/test.spec.ts @@ -44,10 +44,6 @@ describe("etalon tests", () => { imports: [SurveyModule], }).compileComponents(); TestBed.inject(SurveyModule); - Object.defineProperty(document, "fonts", { - get: () => { return { ready: { then: () => {} } }; }, - configurable: true, - }); (window).ResizeObserver = function () { return { observe: () => {}, diff --git a/src/survey.ts b/src/survey.ts index de60ceb1ff..938bd32045 100644 --- a/src/survey.ts +++ b/src/survey.ts @@ -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;