Skip to content

Commit

Permalink
docs(module:collapse): add stop propagation to demo 'extra' (NG-ZORRO…
Browse files Browse the repository at this point in the history
  • Loading branch information
u1F47E authored and Ricbet committed Apr 9, 2020
1 parent 8af0d7d commit 50af79a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/collapse/demo/extra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import { Component } from '@angular/core';
</nz-collapse-panel>
</nz-collapse>
<ng-template #extraTpl>
<i nz-icon nzType="setting"></i>
<!-- You can use stopPropagation if you don't want the panel to toggle -->
<i nz-icon nzType="setting" (click)="$event.stopPropagation()"></i>
</ng-template>
`
})
Expand Down

0 comments on commit 50af79a

Please sign in to comment.