refactor: 💡 convert select component to nested structure

This commit is contained in:
Randall Morey committed 2020-09-24 15:11:32 -04:00
1 parent 1c967b5142
commit 1b1671315b
6 files changed
+10 -22

No files matched your search

@@ -1,11 +0,0 @@
import Component from '@ember/component';
import layout from '../../../templates/components/rose/form/select';
import ComponentAutoId from '../../../mixins/component-auto-id';
/**
* A `<select>` element context component which yields option components.
*/
export default Component.extend(ComponentAutoId, {
layout,
tagName: '',
});
@@ -0,0 +1,10 @@
import Component from '@glimmer/component';
import { generateComponentID } from '../../../../utilities/component-auto-id';
export default class RoseFormSelectComponent extends Component {
// =attributes
id = generateComponentID();
}
@@ -1,11 +0,0 @@
import Component from '@ember/component';
import layout from '../../../../templates/components/rose/form/select/select';
/**
* This component is used internally by rose/form/select and should not be
* instantiated directly.
*/
export default Component.extend({
layout,
tagName: '',
});