reflect href on buttons (#817)

This commit is contained in:
Konnor Rogers
2025-03-20 14:58:21 -04:00
committed by GitHub
parent 07fe6d598e
commit 872a110b1e

View File

@@ -109,7 +109,7 @@ export default class WaButton extends WebAwesomeFormAssociatedElement {
@property({ reflect: true }) value: string | null = null;
/** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */
@property() href = '';
@property({ reflect: true }) href = null;
/** Tells the browser where to open the link. Only used when `href` is present. */
@property() target: '_blank' | '_parent' | '_self' | '_top';