Skip to content

Commit

Permalink
Some fixes from #2262 were accidentially undone. This restores them.
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 committed Sep 21, 2020
1 parent 913bc5c commit 1d98643
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions js/src/common/components/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ export default class Modal extends Component {
this.$('form').find('input, select, textarea').first().focus().select();
}

onhide() {}

/**
* Hide the modal.
*/
Expand Down
2 changes: 1 addition & 1 deletion js/src/forum/components/Composer.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class Composer extends Component {
});

// When the escape key is pressed on any inputs, close the composer.
this.$().on('keydown', ':input', 'esc', () => this.close());
this.$().on('keydown', ':input', 'esc', () => this.state.close());

this.handlers = {};

Expand Down
2 changes: 1 addition & 1 deletion js/src/forum/components/SignUpModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default class SignUpModal extends Modal {
* Get the data that should be submitted in the sign-up request.
*
* @return {Object}
* @public
* @protected
*/
submitData() {
const data = {
Expand Down

0 comments on commit 1d98643

Please sign in to comment.