From d665864cba14e06aa050a1c77d8b5db914355113 Mon Sep 17 00:00:00 2001 From: Andrew Jakubowicz Date: Wed, 16 Aug 2023 15:41:27 -0700 Subject: [PATCH] fix(button): `href` and `target` default value is now an empty string The type of `target` has also been made stricter, now only accepting '_blank'|'_parent'|'_self'|'_top'|''. PiperOrigin-RevId: 557624071 --- button/internal/button.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/button/internal/button.ts b/button/internal/button.ts index 25df611179..8424a758ac 100644 --- a/button/internal/button.ts +++ b/button/internal/button.ts @@ -44,13 +44,13 @@ export abstract class Button extends LitElement implements FormSubmitter { /** * The URL that the link button points to. */ - @property() href?: string; + @property() href = ''; /** * Where to display the linked `href` URL for a link button. Common options * include `_blank` to open in a new tab. */ - @property() target?: string; + @property() target: '_blank'|'_parent'|'_self'|'_top'|'' = ''; /** * Whether to render the icon at the inline end of the label rather than the