You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/app/components/modal-layer.js

19 lines
497 B

import Component from 'consul-ui/components/dom-buffer-flush';
import { inject as service } from '@ember/service';
import { get } from '@ember/object';
export default Component.extend({
dom: service('dom'),
actions: {
change: function(e) {
[...get(this, 'dom').elements('[name="modal"]')]
.filter(function(item) {
return item.getAttribute('id') !== 'modal_close';
})
.forEach(function(item) {
item.onchange();
});
},
},
});