Skip to content

Commit

Permalink
fix(fast-element): ensure host attributes have a target name (microso…
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect authored Mar 27, 2020
1 parent ffe7a57 commit 4bd99c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fast-element/src/template-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ function compileAttributes(

for (let i = 0, ii = attributes.length; i < ii; ++i) {
const attr = attributes[i];
const attrName = attr.name;
const attrValue = attr.value;
let directive = tryParsePlaceholders(attrValue, directives);

if (directive === null && includeBasicValues) {
directive = new BindingDirective(x => attrValue);
directive.targetName = attr.name;
}

if (directive !== null) {
Expand Down

0 comments on commit 4bd99c9

Please sign in to comment.