Skip to content

Commit

Permalink
fix(all): ts 3.2 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Dec 16, 2018
1 parent 56dd8ae commit f393a82
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class Button implements ComponentInterface {
}

render() {
const TagType = this.href === undefined ? 'button' : 'a';
const TagType = this.href === undefined ? 'button' : 'a' as any;
const attrs = (TagType === 'button')
? { type: this.type }
: { href: this.href };
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/fab-button/fab-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class FabButton implements ComponentInterface {
}

render() {
const TagType = this.href === undefined ? 'button' : 'a';
const TagType = this.href === undefined ? 'button' : 'a' as any;
const attrs = (TagType === 'button')
? { type: this.type }
: { href: this.href };
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/item-option/item-option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class ItemOption implements ComponentInterface {
}

render() {
const TagType = this.href === undefined ? 'button' : 'a';
const TagType = this.href === undefined ? 'button' : 'a' as any;

return (
<TagType
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/item/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class Item implements ComponentInterface {
const { href, detail, mode, win, detailIcon, routerDirection, type } = this;

const clickable = this.isClickable();
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div' as any;
const attrs = TagType === 'button' ? { type } : { href };
const showDetail = detail !== undefined ? detail : mode === 'ios' && clickable;

Expand Down

0 comments on commit f393a82

Please sign in to comment.