Skip to content

Commit

Permalink
allow fragment links in buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding authored Nov 3, 2024
1 parent 63ebb64 commit 0544d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/feel/form/src/lib/button/button.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class ButtonComponent {
@Input() @HostBinding("class.disabled") public disabled?: boolean | null;

protected isHref(link: string | undefined): boolean {
return (!!link && (link.startsWith('https:') || link.startsWith('mailto:')));
return (!!link && (link.startsWith('https:') || link.startsWith('mailto:') || link.startsWith('#')));
}

@HostBinding("class.good")
Expand Down

0 comments on commit 0544d36

Please # to comment.