mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +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;
|
this.value = current.value;
|
||||||
|
|
||||||
|
if (current !== previous) {
|
||||||
|
this.emitValueChange();
|
||||||
|
}
|
||||||
|
|
||||||
if (this.scrollable || !this.swipeGesture) {
|
if (this.scrollable || !this.swipeGesture) {
|
||||||
if (previous) {
|
if (previous) {
|
||||||
this.checkButton(previous, current);
|
this.checkButton(previous, current);
|
||||||
|
Reference in New Issue
Block a user