From 05b258c6efcc5cd0d5d50675ab8f4685402f4769 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Tue, 24 Jul 2018 17:32:45 +0200 Subject: [PATCH] fix(tab): prevent infinite loop --- core/src/components/tab/tab.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/src/components/tab/tab.tsx b/core/src/components/tab/tab.tsx index 013dc24f22..cebb4378b0 100644 --- a/core/src/components/tab/tab.tsx +++ b/core/src/components/tab/tab.tsx @@ -106,7 +106,14 @@ export class Tab { } } - componentWillUpdate() { + @Watch('label') + @Watch('href') + @Watch('show') + @Watch('disabled') + @Watch('badge') + @Watch('badgeColor') + @Watch('icon') + onPropChanged() { this.ionTabMutated.emit(); }