diff --git a/core/src/components/alert/alert.tsx b/core/src/components/alert/alert.tsx index 838272b3f1..18577ad31d 100644 --- a/core/src/components/alert/alert.tsx +++ b/core/src/components/alert/alert.tsx @@ -286,7 +286,7 @@ export class Alert implements OverlayInterface { {i.label} - {this.mode === 'md' ? : null} + {this.mode === 'md' && } ))} @@ -306,7 +306,7 @@ export class Alert implements OverlayInterface { {i.label} - {this.mode === 'md' ? : null} + {this.mode === 'md' && } ))} diff --git a/core/src/components/app/app.tsx b/core/src/components/app/app.tsx index a9cb11c765..4772777505 100644 --- a/core/src/components/app/app.tsx +++ b/core/src/components/app/app.tsx @@ -40,7 +40,7 @@ export class App { render() { return [ this.deviceHacks && , - this.isDevice && , + , this.isDevice && , ]; diff --git a/core/src/components/back-button/back-button.tsx b/core/src/components/back-button/back-button.tsx index 2790d44cda..1ab7111d5c 100644 --- a/core/src/components/back-button/back-button.tsx +++ b/core/src/components/back-button/back-button.tsx @@ -63,7 +63,7 @@ export class BackButton { onClick={(ev) => this.onClick(ev)}> { backButtonIcon && } { backButtonText && {backButtonText} } - { this.mode === 'md' && } + { this.mode === 'md' && } ); } diff --git a/core/src/components/button/button.tsx b/core/src/components/button/button.tsx index 470a9d8281..789a82bcc4 100644 --- a/core/src/components/button/button.tsx +++ b/core/src/components/button/button.tsx @@ -157,7 +157,7 @@ export class Button { - { this.mode === 'md' && } + { this.mode === 'md' && } ); } diff --git a/core/src/components/chip-button/chip-button.tsx b/core/src/components/chip-button/chip-button.tsx index 7f3b6dfcde..214177b97e 100644 --- a/core/src/components/chip-button/chip-button.tsx +++ b/core/src/components/chip-button/chip-button.tsx @@ -68,7 +68,7 @@ export class ChipButton { - { this.mode === 'md' && } + { this.mode === 'md' && } ); } diff --git a/core/src/components/datetime/datetime.tsx b/core/src/components/datetime/datetime.tsx index bb567f358c..31df1ba377 100644 --- a/core/src/components/datetime/datetime.tsx +++ b/core/src/components/datetime/datetime.tsx @@ -628,7 +628,7 @@ export class Datetime { aria-disabled={this.disabled ? 'true' : false} onClick={this.open.bind(this)} class='datetime-cover'> - {this.mode === 'md' ? : null} + {this.mode === 'md' && } ]; } diff --git a/core/src/components/fab-button/fab-button.tsx b/core/src/components/fab-button/fab-button.tsx index 8762ea2738..2c469e6b6b 100755 --- a/core/src/components/fab-button/fab-button.tsx +++ b/core/src/components/fab-button/fab-button.tsx @@ -110,7 +110,7 @@ export class FabButton { - { this.mode === 'md' && } + { this.mode === 'md' && } ); } diff --git a/core/src/components/item/item.tsx b/core/src/components/item/item.tsx index a0f3107c82..e0ca4db084 100644 --- a/core/src/components/item/item.tsx +++ b/core/src/components/item/item.tsx @@ -133,7 +133,7 @@ export class Item { - { clickable && this.mode === 'md' && } + { clickable && this.mode === 'md' && } ); } diff --git a/core/src/components/ripple-effect/ripple-effect.tsx b/core/src/components/ripple-effect/ripple-effect.tsx index 3c44422f2f..049a9bc4b3 100644 --- a/core/src/components/ripple-effect/ripple-effect.tsx +++ b/core/src/components/ripple-effect/ripple-effect.tsx @@ -14,7 +14,7 @@ export class RippleEffect { @Prop({context: 'dom'}) dom: DomController; @Prop({context: 'enableListener'}) enableListener: EventListenerEnable; - @Prop({ mutable: true }) useTapClick: boolean; + @Prop() useTapClick = false; @Watch('useTapClick') tapClickChanged(useTapClick: boolean) { this.enableListener(this, 'parent:ionActivated', useTapClick); @@ -42,12 +42,6 @@ export class RippleEffect { } } - componentWillLoad() { - if (this.useTapClick === undefined) { - this.useTapClick = !!document.querySelector('ion-tap-click'); - } - } - componentDidLoad() { this.tapClickChanged(this.useTapClick); } diff --git a/core/src/components/ripple-effect/test/basic/index.html b/core/src/components/ripple-effect/test/basic/index.html index 72d7d33e10..0b34cdd588 100644 --- a/core/src/components/ripple-effect/test/basic/index.html +++ b/core/src/components/ripple-effect/test/basic/index.html @@ -9,6 +9,7 @@