mirror of https://github.com/status-im/consul.git
15 lines
365 B
JavaScript
15 lines
365 B
JavaScript
import Component from '@ember/component';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default Component.extend({
|
|
tagName: '',
|
|
dom: service('dom'),
|
|
multiple: false,
|
|
onchange: function() {},
|
|
actions: {
|
|
change: function(option, e) {
|
|
this.onchange(this.dom.setEventTargetProperty(e, 'selected', selected => option));
|
|
},
|
|
},
|
|
});
|