From ca5d1d2fdcf913c1801e4efa81a2f195ce7b72be Mon Sep 17 00:00:00 2001 From: Jane Chu <7559015+janechu@users.noreply.github.com> Date: Thu, 24 Feb 2022 07:44:12 -0800 Subject: [PATCH] Fixed an updated export from FAST element 2.0 (#5653) * Fixed an updated export from FAST element 2.0 * Change files --- ...t-fast-router-d8d52093-fa07-417d-a12d-acdab4a96101.json | 7 +++++++ packages/web-components/fast-router/src/contributors.ts | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 change/@microsoft-fast-router-d8d52093-fa07-417d-a12d-acdab4a96101.json diff --git a/change/@microsoft-fast-router-d8d52093-fa07-417d-a12d-acdab4a96101.json b/change/@microsoft-fast-router-d8d52093-fa07-417d-a12d-acdab4a96101.json new file mode 100644 index 00000000000..d6e89d4ac48 --- /dev/null +++ b/change/@microsoft-fast-router-d8d52093-fa07-417d-a12d-acdab4a96101.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Fixed an updated export from FAST element 2.0", + "packageName": "@microsoft/fast-router", + "email": "7559015+janechu@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/packages/web-components/fast-router/src/contributors.ts b/packages/web-components/fast-router/src/contributors.ts index 5ba154b227c..eb9afd35e0d 100644 --- a/packages/web-components/fast-router/src/contributors.ts +++ b/packages/web-components/fast-router/src/contributors.ts @@ -1,7 +1,7 @@ import { Behavior, HTMLDirective, - DOM, + Markup, ViewBehaviorTargets, } from "@microsoft/fast-element"; import { @@ -50,7 +50,7 @@ class NavigationContributorDirective extends HTMLDirective { } createPlaceholder(index: number) { - return DOM.createCustomAttributePlaceholder(index); + return Markup.attribute(index); } createBehavior(targets: ViewBehaviorTargets) {