Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Jun 21, 2024
1 parent b9d1550 commit b6422b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/accordion/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export class AccordionTab implements AfterContentInit, OnDestroy {

toggle(event?: MouseEvent | KeyboardEvent) {
const target = event.target as HTMLElement;
const elements = ['a', 'button', 'input'];
const elements = ['a', 'button', 'input', 'textarea'];

if (this.disabled || (this.isElementInList(target, elements) && !target.classList.contains('p-accordion-header-link'))) {
return false;
Expand Down

0 comments on commit b6422b3

Please sign in to comment.