feat(segment): ionChange will only emit from user committed changes (#25934)

This commit is contained in:
Sean Perkins
2022-09-21 10:33:58 -04:00
committed by GitHub
parent 35041b2f3c
commit a03c8afb3d
5 changed files with 221 additions and 23 deletions

View File

@ -2455,7 +2455,7 @@ export namespace Components {
/**
* the value of the segment.
*/
"value"?: string | null;
"value"?: string;
}
interface IonSegmentButton {
/**
@ -6212,7 +6212,7 @@ declare namespace LocalJSX {
*/
"onIonChange"?: (event: IonSegmentCustomEvent<SegmentChangeEventDetail>) => void;
/**
* Emitted when user has dragged over a new button
* Emitted when the value of the segment changes from user committed actions or from externally assigning a value.
*/
"onIonSelect"?: (event: IonSegmentCustomEvent<SegmentChangeEventDetail>) => void;
/**
@ -6234,7 +6234,7 @@ declare namespace LocalJSX {
/**
* the value of the segment.
*/
"value"?: string | null;
"value"?: string;
}
interface IonSegmentButton {
/**