mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +03:00
fix: broken code samples tabs in IE
This commit is contained in:
parent
c5b6ac47ac
commit
c1dbb81aac
|
@ -1,10 +1,10 @@
|
|||
<header *ngIf="schemaPointer || samples.length"> Request samples </header>
|
||||
<schema-sample *ngIf="schemaPointer && !samples.length" [skipReadOnly]="true" [pointer]="schemaPointer"> </schema-sample>
|
||||
<tabs *ngIf="samples.length" [selected] = "selectedLang" (change)=changeLangNotify($event)>
|
||||
<tab *ngIf="schemaPointer" tabTitle="JSON">
|
||||
<tab *ngIf="schemaPointer" [tabTitle]="'JSON' | safe">
|
||||
<schema-sample [pointer]="schemaPointer" [skipReadOnly]="true"> </schema-sample>
|
||||
</tab>
|
||||
<tab *ngFor="let sample of samples" [tabTitle]="sample.lang">
|
||||
<tab *ngFor="let sample of samples" [tabTitle]="sample.lang | safe">
|
||||
<div class="code-sample">
|
||||
<div class="action-buttons">
|
||||
<span copy-button [copyText]="sample.source" class="hint--top-left hint--inversed"><a>Copy</a></span>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<ul>
|
||||
<li *ngFor="let tab of tabs" [ngClass]="{active: tab.active}" (click)="selectTab(tab)"
|
||||
class="tab-{{tab.tabStatus}}" [innerHTML]="tab.tabTitle"></li>
|
||||
class="tab-{{tab.tabStatus}}" [innerHtml]="tab.tabTitle"></li>
|
||||
</ul>
|
||||
<ng-content></ng-content>
|
||||
|
|
Loading…
Reference in New Issue
Block a user