Force the editor to re-render its record in real time when using inline
mode, since the call to open() will never occur for inline mode.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
setRecord(record: IdlObject) {
this.record = record;
this.recId = null;
+ if (!this.isDialog()) {
+ // in inline mode, update the display immediately to reflect
+ // the change in source record.
+ this.initRecord();
+ }
}
// Translate comma-separated string versions of various inputs
//
// Create a new record from the stub record provided by the
// caller or a new from-scratch record
- this.setRecord(this.record || this.idl.create(this.idlClass));
+ this.record = this.record || this.idl.create(this.idlClass);
+ this.recId = null; // avoid future confusion
return this.getFieldList();
}