-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #7774 - A question disappears when Title Location: Bottom and t…
…he question is collapsed
- Loading branch information
tsv2013
committed
Feb 2, 2024
1 parent
5f6f733
commit 945a0fe
Showing
2 changed files
with
30 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,36 @@ | ||
<script type="text/html" id="survey-question-content"> | ||
<div data-bind="visible: !question.isCollapsed, css: question.cssContent, event: {focusin: question.focusIn }" role="presentation"> | ||
<!-- ko if: question.showErrorOnTop --> | ||
<!-- ko template: { name: 'survey-question-errors', data: question } --> | ||
<!-- /ko --> | ||
<!-- ko if: question.showErrorOnTop --> | ||
<!-- ko template: { name: 'survey-question-errors', data: question } --> | ||
<!-- /ko --> | ||
<!-- ko if: question.isDefaultRendering() --> | ||
<!-- ko template: { name: question.koTemplateName(), data: question, afterRender: question.koQuestionAfterRender } --> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
<!-- ko if: question.isDefaultRendering() --> | ||
<!-- ko template: { name: question.koTemplateName(), data: question, afterRender: question.koQuestionAfterRender } --> | ||
<!-- /ko --> | ||
<!-- ko ifnot: question.isDefaultRendering() --> | ||
<!-- ko component: { name: getComponentName(), params: { question: question } } --> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
<!-- ko ifnot: question.isDefaultRendering() --> | ||
<!-- ko component: { name: getComponentName(), params: { question: question } } --> | ||
<!-- /ko --> | ||
<!-- ko if: question.hasComment --> | ||
<div data-bind="css: question.getCommentAreaCss()"> | ||
<div> | ||
<!-- ko template: { name: 'survey-string', data: question.locCommentText } --> | ||
<!-- /ko --> | ||
</div> | ||
<!-- ko template: { name: 'survey-comment', data: {'question': question, 'visible': true } } --> | ||
<!-- /ko --> | ||
<!-- ko if: question.hasComment --> | ||
<div data-bind="css: question.getCommentAreaCss()"> | ||
<div> | ||
<!-- ko template: { name: 'survey-string', data: question.locCommentText } --> | ||
<!-- /ko --> | ||
</div> | ||
<!-- ko template: { name: 'survey-comment', data: {'question': question, 'visible': true } } --> | ||
<!-- /ko --> | ||
<!-- ko if: question.showErrorOnBottom --> | ||
<!-- ko template: { name: 'survey-question-errors', data: question } --> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
<!-- ko if: question.hasDescriptionUnderInput --> | ||
<div data-bind="css: cssClasses.descriptionUnderInput"> | ||
<!-- ko template: { name: 'survey-string', data: locDescription } --> | ||
<!-- /ko --> | ||
</div> | ||
</div> | ||
<!-- /ko --> | ||
<!-- ko if: question.showErrorOnBottom --> | ||
<!-- ko template: { name: 'survey-question-errors', data: question } --> | ||
<!-- /ko --> | ||
<!-- ko if: question.hasTitleOnBottom --> | ||
<!--ko template: { name: 'survey-question-title', data: question } --> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
<!-- ko if: question.hasDescriptionUnderInput --> | ||
<div data-bind="css: cssClasses.descriptionUnderInput"> | ||
<!-- ko template: { name: 'survey-string', data: locDescription } --> | ||
<!-- /ko --> | ||
</div> | ||
<!-- /ko --> | ||
</div> | ||
</script> |