diff --git a/addons/website/static/src/components/configurator/configurator.js b/addons/website/static/src/components/configurator/configurator.js index 61ad1a36c05..6eaeccb491a 100644 --- a/addons/website/static/src/components/configurator/configurator.js +++ b/addons/website/static/src/components/configurator/configurator.js @@ -128,22 +128,24 @@ class DescriptionScreen extends Component { } selectIndustry(_, ui) { + this.industrySelection.el.parentNode.dataset.value = ui.item.label; this.dispatch('selectIndustry', this.labelToId[ui.item.label]); this.checkDescriptionCompletion(); } blurIndustrySelection(ev) { - const id = this.labelToId[ev.target.outerText]; + const id = this.labelToId[ev.target.value]; this.dispatch('selectIndustry', id); if (id === undefined) { - this.industrySelection.el.textContent = ''; + this.industrySelection.el.value = ''; + this.industrySelection.el.parentNode.dataset.value = ''; } else { this.checkDescriptionCompletion(); } } inputIndustrySelection(ev) { - this.dispatch('selectIndustry', this.labelToId[ev.target.outerText]); + this.industrySelection.el.parentNode.dataset.value = ev.target.value; } selectWebsiteType(ev) { diff --git a/addons/website/static/src/components/configurator/configurator.xml b/addons/website/static/src/components/configurator/configurator.xml index 872ded4f07a..33d414f2250 100644 --- a/addons/website/static/src/components/configurator/configurator.xml +++ b/addons/website/static/src/components/configurator/configurator.xml @@ -44,7 +44,7 @@ -
+
@@ -52,12 +52,12 @@
- for my + for my -
-
- -
+
+ business ,
@@ -72,7 +72,7 @@
-