Skip to content

Commit

Permalink
[FEATURE ember-glimmer-angle-bracket-built-ins]
Browse files Browse the repository at this point in the history
Fix events test
  • Loading branch information
chancancode committed Mar 29, 2019
1 parent cfc2532 commit 628af51
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ if (EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {
dragend: 'dragEnd',
};

let TestComponent = Component.extend({ tagName: 'input' });
let TestComponent = Component.extend({
tagName: 'input',
attributeBindings: ['type'],
});
this.registerComponent('test-component', { ComponentClass: TestComponent });

let triggeredEvents = [];
Expand All @@ -125,7 +128,7 @@ if (EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {
};
});

let typeAttr = type ? `type="${type}" ` : '';
let typeAttr = type ? `@type="${type}" ` : '';
let actionAttrs = Object.keys(events)
.map(evt => `@${events[evt]}={{action 'run_${evt}'}}`)
.join(' ');
Expand Down

0 comments on commit 628af51

Please sign in to comment.