mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(input): clear on edit from inside native input (#17115)
fixes #17055
This commit is contained in:

committed by
Brandy Carney

parent
9030dcc111
commit
85093d6352
@ -314,6 +314,15 @@ export class Input implements ComponentInterface {
|
||||
}
|
||||
|
||||
this.value = '';
|
||||
|
||||
/**
|
||||
* This is needed for clearOnEdit
|
||||
* Otherwise the value will not be cleared
|
||||
* if user is inside the input
|
||||
*/
|
||||
if (this.nativeInput) {
|
||||
this.nativeInput.value = '';
|
||||
}
|
||||
}
|
||||
|
||||
private focusChanged() {
|
||||
|
Reference in New Issue
Block a user