summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2018-07-31 11:16:25 +0200
committerChristophe Matthieu <chm@odoo.com>2018-08-13 17:09:28 +0200
commit9eef25ae0ab557f333ae5c6ff0f5699981f0bd00 (patch)
treef23e19d59a52e29efa1e2a5b55d71766421bbb6f /addons/web/static/src/js
parent8f7fdb0d99bb99f122b7a5be6795ebb174c27bc6 (diff)
[FIX] web: can focus out then focus in when currently being selected
Before this fix, in studio when the user select the field then focus out then focus in and selected a child field, an exception is triggered because the last page is visible but the data are removed. A test in enterprise (web_studio) is added with this commit.
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/widgets/model_field_selector.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/web/static/src/js/widgets/model_field_selector.js b/addons/web/static/src/js/widgets/model_field_selector.js
index f5148286fcc..68539d4502b 100644
--- a/addons/web/static/src/js/widgets/model_field_selector.js
+++ b/addons/web/static/src/js/widgets/model_field_selector.js
@@ -270,7 +270,6 @@ var ModelFieldSelector = Widget.extend({
if (this.dirty) {
this.dirty = false;
- this.pages = this.pages.slice(0, this.chain.length || 1);
this.trigger_up("field_chain_changed", {chain: this.chain});
}
},