fix(segment): click event triggers ionChange (#26162)

This commit is contained in:
Sean Perkins
2022-10-24 15:00:17 -04:00
committed by GitHub
parent 2080890c11
commit 70781e4c9f

View File

@ -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);