From 70781e4c9f93e8e58917083da43536389ac5332e Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Mon, 24 Oct 2022 15:00:17 -0400 Subject: [PATCH] fix(segment): click event triggers ionChange (#26162) --- core/src/components/segment/segment.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/components/segment/segment.tsx b/core/src/components/segment/segment.tsx index e44152db80..33b5cd9f9a 100644 --- a/core/src/components/segment/segment.tsx +++ b/core/src/components/segment/segment.tsx @@ -437,6 +437,10 @@ export class Segment implements ComponentInterface { this.value = current.value; + if (current !== previous) { + this.emitValueChange(); + } + if (this.scrollable || !this.swipeGesture) { if (previous) { this.checkButton(previous, current);