Skip to content

Commit

Permalink
fix(module:tabs): change tab trigger ngSubmit function (#8310)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoss54 authored Dec 21, 2023
1 parent d376708 commit a16c70b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/tabs/tabset.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import { NzTabBodyComponent } from './tab-body.component';
import { NzTabCloseButtonComponent } from './tab-close-button.component';
import { NzTabNavBarComponent } from './tab-nav-bar.component';
import { NzTabNavItemDirective } from './tab-nav-item.directive';
import { NzTabComponent, NZ_TAB_SET } from './tab.component';
import { NZ_TAB_SET, NzTabComponent } from './tab.component';

const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'tabs';

Expand Down Expand Up @@ -95,6 +95,7 @@ let nextId = 0;
*ngFor="let tab of tabs; let i = index"
>
<button
type="button"
role="tab"
[id]="getTabContentId(i)"
[attr.tabIndex]="getTabIndex(tab, i)"
Expand All @@ -110,6 +111,7 @@ let nextId = 0;
>
<ng-container *nzStringTemplateOutlet="tab.label; context: { visible: true }">{{ tab.label }}</ng-container>
<button
type="button"
nz-tab-close-button
*ngIf="tab.nzClosable && closable && !tab.nzDisabled"
[closeIcon]="tab.nzCloseIcon"
Expand Down

0 comments on commit a16c70b

Please sign in to comment.