This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 5d6a8efae1ff78f185013fcc9c13640875006cec Author: jcouteau <couteau@codelutin.com> Date: Fri Nov 6 17:24:54 2020 +0100 fixes #352 : Cases à cocher Pollen - impossible : Par défaut, aucun composant affiché (avant il y avait un input de type nombre par défaut en attendant le chargement du composant). --- pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html index 439a63bc..8f7d260e 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html @@ -75,7 +75,7 @@ onchange="{onVoteChanged}" ref="{choice.id}_voteValue" tabindex="{10 * (index + 1)}"> - <input if={!pollTypeCheckbox && !pollTypeSelect} + <input if={pollTypeNumber} class="text c-field {c-field--error: !voteInEdition && error && (error['vote.voteValue#' + choice.id] || error['vote.totalVoteValue'])}" type="number" required={!poll.questions[0].voteCountingConfig.maxChoiceNumber} @@ -204,11 +204,13 @@ this.pollTypeCheckbox = poll2.questions[0].voteCountingTypeValue && poll2.questions[0].voteCountingTypeValue.renderType === "checkbox"; this.pollTypeSelect = poll2.questions[0].voteCountingTypeValue && poll2.questions[0].voteCountingTypeValue.renderType === "select"; this.pollTypeCoombs = poll2.questions[0].voteCountingType && poll2.questions[0].voteCountingType === 7; + this.pollTypeNumber = !this.pollTypeSelect && !this.pollTypeCheckbox; }); } else { this.pollTypeCheckbox = poll2.questions[0].voteCountingTypeValue && poll2.questions[0].voteCountingTypeValue.renderType === "checkbox"; this.pollTypeSelect = poll2.questions[0].voteCountingTypeValue && poll2.questions[0].voteCountingTypeValue.renderType === "select"; this.pollTypeCoombs = poll2.questions[0].voteCountingType && poll2.questions[0].voteCountingType === 7; + this.pollTypeNumber = !this.pollTypeSelect && !this.pollTypeCheckbox; } this.resultsLoaded = poll2.questions[0].results !== undefined; if (!this.resultsLoaded) { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.