mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
cce71e5517
no issue - the billing modal is always rendered, it's contents being shown/hidden via CSS - when the billing modal was rendered it was changing the `key` scope and binding the enter key, however because it's always rendered this was messing with the default key scope for all other areas of the app - removed all keyboard handling from the billing modal because it wasn't actually doing anything (there is nothing to handle the "confirm" action when Enter is pressed) which fixes the unexpected key scope change
12 lines
344 B
JavaScript
12 lines
344 B
JavaScript
import Component from '@ember/component';
|
|
import {computed} from '@ember/object';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default Component.extend({
|
|
billing: service(),
|
|
|
|
visibilityClass: computed('billingWindowOpen', function () {
|
|
return this.billingWindowOpen ? 'gh-billing' : 'gh-billing closed';
|
|
})
|
|
});
|