mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
Merge remote-tracking branch 'origin/main' into chore/sync-with-main-5-3
This commit is contained in:
@ -424,7 +424,11 @@ export class Input implements ComponentInterface {
|
||||
*/
|
||||
private emitInputChange(event?: Event) {
|
||||
const { value } = this;
|
||||
this.ionInput.emit({ value, event });
|
||||
|
||||
// Checks for both null and undefined values
|
||||
const newValue = value == null ? value : value.toString();
|
||||
|
||||
this.ionInput.emit({ value: newValue, event });
|
||||
}
|
||||
|
||||
private shouldClearOnEdit() {
|
||||
|
||||
Reference in New Issue
Block a user