[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.
This commit is contained in:
Christophe Matthieu
2018-08-13 17:09:28 +02:00
parent 8f7fdb0d99
commit 9eef25ae0a
@@ -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});
}
},