mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 11:54:33 +03:00
909bd60db3
no issue - enter key when a modal is displayed will always trigger the `confirm` action, if it's not provided then the base modal will throw a `You must override the "confirm" action ...` error
9 lines
211 B
JavaScript
9 lines
211 B
JavaScript
import ModalComponent from 'ghost-admin/components/modal-base';
|
|
|
|
export default ModalComponent.extend({
|
|
actions: {
|
|
// noop - we don't want the enter key doing anything
|
|
confirm() {}
|
|
}
|
|
});
|