diff options
| author | Christophe Matthieu <chm@odoo.com> | 2018-07-31 11:16:25 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2018-08-13 17:09:28 +0200 |
| commit | 9eef25ae0ab557f333ae5c6ff0f5699981f0bd00 (patch) | |
| tree | f23e19d59a52e29efa1e2a5b55d71766421bbb6f /addons/web/static/src/js/widgets/model_field_selector.js | |
| parent | 8f7fdb0d99bb99f122b7a5be6795ebb174c27bc6 (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/widgets/model_field_selector.js')
| -rw-r--r-- | addons/web/static/src/js/widgets/model_field_selector.js | 1 |
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}); } }, |
