Skip to content

Commit

Permalink
fix(tabs): name prop is not longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Oct 31, 2018
1 parent 0faa355 commit 6d11cc1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 22 deletions.
3 changes: 1 addition & 2 deletions angular/src/directives/proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ export class TabButton {
}

export declare interface Tabs extends StencilComponents<'IonTabs'> {}
@Component({ selector: 'ion-tabs', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: '<ng-content></ng-content>', inputs: ['name'] })
@Component({ selector: 'ion-tabs', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: '<ng-content></ng-content>' })
export class Tabs {
ionChange: EventEmitter<CustomEvent>;
ionNavWillLoad: EventEmitter<CustomEvent>;
Expand All @@ -902,7 +902,6 @@ export class Tabs {
c.detach();
const el = r.nativeElement;
proxyMethods(this, el, ['select', 'setRouteId', 'getRouteId', 'getTab', 'getSelected']);
proxyInputs(this, el, ['name']);
proxyOutputs(this, el, ['ionChange', 'ionNavWillLoad', 'ionNavWillChange', 'ionNavDidChange']);
}
}
Expand Down
8 changes: 0 additions & 8 deletions core/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4586,20 +4586,12 @@ export namespace Components {
*/
'getTab': (tab: string | HTMLIonTabElement) => Promise<HTMLIonTabElement | undefined>;
/**
* A unique name for the tabs.
*/
'name'?: string;
/**
* Index or the Tab instance, of the tab to select.
*/
'select': (tab: string | HTMLIonTabElement) => Promise<boolean>;
'setRouteId': (id: string) => Promise<RouteWrite>;
}
interface IonTabsAttributes extends StencilHTMLAttributes {
/**
* A unique name for the tabs.
*/
'name'?: string;
/**
* Emitted when the tab changes.
*/
Expand Down
7 changes: 0 additions & 7 deletions core/src/components/tabs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ direct children of `ion-tabs`, like this:
<!-- Auto Generated Below -->


## Properties

| Property | Attribute | Description | Type |
| -------- | --------- | --------------------------- | --------------------- |
| `name` | `name` | A unique name for the tabs. | `string \| undefined` |


## Events

| Event | Detail | Description |
Expand Down
5 changes: 0 additions & 5 deletions core/src/components/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ export class Tabs implements NavOutlet {
@Prop({ context: 'config' }) config!: Config;
@Prop({ context: 'document' }) doc!: Document;

/**
* A unique name for the tabs.
*/
@Prop() name?: string;

/**
* Emitted when the tab changes.
*/
Expand Down

0 comments on commit 6d11cc1

Please sign in to comment.