Skip to content

Commit

Permalink
fix(speeddial): add type='button' to prevent unintended form submissi…
Browse files Browse the repository at this point in the history
…on (#17553)
  • Loading branch information
AladhamDawwa authored Feb 14, 2025
1 parent 4aa036a commit 0bbd613
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/primeng/src/speeddial/speeddial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import { SpeedDialStyle } from './style/speeddialstyle';
<div #container [ngClass]="containerClass()" [class]="className" [style]="style" [ngStyle]="rootStyles" [attr.data-pc-name]="'speeddial'" [attr.data-pc-section]="'root'">
<ng-container *ngIf="!buttonTemplate && !_buttonTemplate">
<button
type="button"
pButton
pRipple
[style]="buttonStyle"
Expand Down Expand Up @@ -97,6 +98,7 @@ import { SpeedDialStyle } from './style/speeddialstyle';
</ng-container>
<ng-container *ngIf="!itemTemplate && !_itemTemplate">
<button
type="button"
pButton
pRipple
class="p-speeddial-action"
Expand Down

0 comments on commit 0bbd613

Please sign in to comment.