This is an automated email from the git hooks/post-receive script. New commit to branch feature/multi-ui in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit e700547a479112e6eb3dd0232331645c24c2321e Author: jcouteau <couteau@codelutin.com> Date: Mon Oct 28 10:42:17 2019 +0100 Fix label update bug on init --- .../src/main/web/tag/components/MultiLineLabel.tag.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/components/MultiLineLabel.tag.html b/pollen-ui-riot-js/src/main/web/tag/components/MultiLineLabel.tag.html index aab89abf..bc78d773 100644 --- a/pollen-ui-riot-js/src/main/web/tag/components/MultiLineLabel.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/components/MultiLineLabel.tag.html @@ -23,7 +23,7 @@ <span ref="label"></span> <script> - this.on("update", () => { + this.updateLabel = () => { let labelText; if (this.opts.label) { labelText = this.opts.label; @@ -31,7 +31,10 @@ labelText = ""; } this.refs.label.innerText = labelText; - }); + }; + + this.on("mount", this.updateLabel); + this.on("update", this.updateLabel); </script> </MultiLineLabel> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.