Skip to content

Commit

Permalink
fix(accordion): ajusta tipo do botão para evitar envio de formulário
Browse files Browse the repository at this point in the history
Alterado o tipo do botão de submit para button, eliminando o comportamento de envio de eventos para formulários ao pressionar a tecla Enter.
fixes DTHFUI-10166
  • Loading branch information
pedrodominguesp authored and anabye committed Jan 23, 2025
1 parent 5a4eafe commit 6a98a70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[attr.aria-label]="label"
[attr.aria-expanded]="expanded || false"
class="po-accordion-item-header-button po-clickable"
type="button"
(click)="onClick()"
>
<div class="po-accordion-item-header-button-content" [p-tooltip]="getTooltip()">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<button
#accordionHeaderButtonManagerElement
class="po-accordion-manager-button po-clickable"
type="button"
(click)="onClick()"
[attr.aria-expanded]="expandedAllItems"
[p-tooltip]="getTooltip()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</po-radio-group>
<po-checkbox-group
class="po-md-6"
p-label="Propetie Accordion Item"
p-label="Properties Accordion Item"
name="disabledItem"
[p-options]="disabledOption"
[(ngModel)]="disabledItem"
Expand Down

0 comments on commit 6a98a70

Please sign in to comment.