FIX: `{{ace-editor}}` was buggy in Ember CLI release (#12952)

This commit is contained in:
Robin Ward 2021-05-05 13:45:52 -04:00 committed by GitHub
parent c8f34db648
commit c792c2b5fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,10 @@ export default Component.extend({
}
},
didRender() {
this._skipContentChangeEvent = false;
},
@observes("content")
contentChanged() {
const content = this.content || "";
@ -103,7 +107,6 @@ export default Component.extend({
editor.on("change", () => {
this._skipContentChangeEvent = true;
this.set("content", editor.getSession().getValue());
this._skipContentChangeEvent = false;
});
if (this.attrs.save) {
editor.commands.addCommand({