mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(input): clear text input
* Added Type Button To prevent the clear button to call submit function if ngSubmit is used. * Clear Input Action. Added a change value action to the clearTextInput function. It now actually clears input
This commit is contained in:
@ -406,6 +406,7 @@ export class InputBase {
|
||||
*/
|
||||
clearTextInput() {
|
||||
console.debug('Should clear input');
|
||||
this._value = '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user