From b9220577db51e71f3b802a53cfbb08054e34df33 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 8 Sep 2023 12:02:31 +0300 Subject: [PATCH] Bug/6865 knockout showinmultiplecolumns maxselchoices (#6901) * Refactor code and write functional test #6865 * Fix the issue #6865 --- src/knockout/kosurvey.ts | 2 +- src/knockout/templates/question-checkbox.html | 16 ++++----- .../templates/question-matrixdynamic.html | 4 +-- .../templates/question-radiogroup.html | 12 +++---- src/question_checkbox.ts | 2 +- src/question_dropdown.ts | 2 +- testCafe/questions/checkboxes.js | 35 +++++++++++++++++++ 7 files changed, 54 insertions(+), 19 deletions(-) diff --git a/src/knockout/kosurvey.ts b/src/knockout/kosurvey.ts index 4d1cecaa6d..e515c4dfa2 100644 --- a/src/knockout/kosurvey.ts +++ b/src/knockout/kosurvey.ts @@ -171,7 +171,7 @@ LocalizableString.prototype["onCreating"] = function () { }; ItemValue.prototype["onCreating"] = function () { - // new ImplementorBase(this); + new ImplementorBase(this); this.koText = ko.pureComputed(() => { return this.locText.koRenderedHtml(); }); }; diff --git a/src/knockout/templates/question-checkbox.html b/src/knockout/templates/question-checkbox.html index 937597ffab..c2b8f6f6d1 100644 --- a/src/knockout/templates/question-checkbox.html +++ b/src/knockout/templates/question-checkbox.html @@ -47,13 +47,13 @@