mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(Input): added functionality for clear input option on ion-input
Implemented function to handle when the clearInput button is pressed on an ion-input element
This commit is contained in:
@@ -105,6 +105,13 @@ export class TextInput extends InputBase {
|
||||
inputFocused(event) {
|
||||
this.focus.emit(event);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
clearTextInput() {
|
||||
this._value = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user