Skip to content

Commit

Permalink
Add comment to explain the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lagartoverde committed Apr 21, 2023
1 parent 63de6d0 commit 5fece01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/components/editor-document-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export default class EditorDocumentTitleComponent extends Component {
}
}

// We check the value of active in these 2 functions to avoid setting it 2 times in the same computation with
// the cancel event + submit which cause a bug in prod environments.
@action
enableEdit() {
if (this.active) {
Expand Down

0 comments on commit 5fece01

Please sign in to comment.