WIP remove unneeded code.
This commit is contained in:
parent
4ddefb6d50
commit
137d5d41e8
1 changed files with 3 additions and 5 deletions
|
|
@ -4,10 +4,11 @@
|
||||||
<label for="textarea-comments" class="fw-bold" v-html="TextAreaContentWidget"></label> <span v-if="!isRequired" class="fw-normal ms-1">(Optional)</span>
|
<label for="textarea-comments" class="fw-bold" v-html="TextAreaContentWidget"></label> <span v-if="!isRequired" class="fw-normal ms-1">(Optional)</span>
|
||||||
</div>
|
</div>
|
||||||
<textarea
|
<textarea
|
||||||
rows="4"
|
|
||||||
id="textarea-comments"
|
id="textarea-comments"
|
||||||
|
class="p-4"
|
||||||
:maxlength=maxLength
|
:maxlength=maxLength
|
||||||
role="textbox"
|
role="textbox"
|
||||||
|
aria-multiline="true"
|
||||||
:aria-required=isRequired>
|
:aria-required=isRequired>
|
||||||
</textarea>
|
</textarea>
|
||||||
<p tabindex="0" class="caption mt-2 mb-0" id="charactersremaining">
|
<p tabindex="0" class="caption mt-2 mb-0" id="charactersremaining">
|
||||||
|
|
@ -51,9 +52,6 @@ export default {
|
||||||
TextAreaContentWidget() {
|
TextAreaContentWidget() {
|
||||||
return this.getCmsContent(this.cmsWidgetName, "QuestionText");
|
return this.getCmsContent(this.cmsWidgetName, "QuestionText");
|
||||||
},
|
},
|
||||||
setUpTest() {
|
|
||||||
this.enableRemainingCounter();
|
|
||||||
},
|
|
||||||
value: {
|
value: {
|
||||||
get: function () {
|
get: function () {
|
||||||
return this.modelValue;
|
return this.modelValue;
|
||||||
|
|
@ -63,7 +61,7 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () { //Remaining characters countdown
|
||||||
const my_textarea = document.getElementById("textarea-comments");
|
const my_textarea = document.getElementById("textarea-comments");
|
||||||
const remaining = document.getElementById("charactersremaining");
|
const remaining = document.getElementById("charactersremaining");
|
||||||
const remain = this.maxLength;
|
const remain = this.maxLength;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue