mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
fix(input): remain focused in the input after pressing the clear button (#21985)
resolves #21549
This commit is contained in:
@ -357,6 +357,9 @@ export class Input implements ComponentInterface {
|
||||
if (this.clearInput && !this.readonly && !this.disabled && ev) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
|
||||
// Attempt to focus input again after pressing clear button
|
||||
this.setFocus();
|
||||
}
|
||||
|
||||
this.value = '';
|
||||
|
Reference in New Issue
Block a user