mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(segment): click event triggers ionChange (#26162)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user