File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,9 @@ export class InputBase extends Ion {
147
147
* @private
148
148
*/
149
149
checkClearOnEdit ( inputValue : string ) {
150
- if ( ! this . _clearOnEdit ) { return ; }
150
+ if ( ! this . _clearOnEdit ) {
151
+ return ;
152
+ }
151
153
152
154
// Did the input value change after it was blurred and edited?
153
155
if ( this . _didBlurAfterEdit && this . hasValue ( ) ) {
@@ -269,7 +271,7 @@ export class InputBase extends Ion {
269
271
* @private
270
272
*/
271
273
onKeydown ( val : any ) {
272
- if ( this . _clearOnEdit ) {
274
+ if ( this . _clearOnEdit ) {
273
275
this . checkClearOnEdit ( val ) ;
274
276
}
275
277
}
@@ -319,7 +321,7 @@ export class InputBase extends Ion {
319
321
}
320
322
321
323
// If clearOnEdit is enabled and the input blurred but has a value, set a flag
322
- if ( this . _clearOnEdit && ! inputHasFocus && this . hasValue ( ) ) {
324
+ if ( this . _clearOnEdit && ! inputHasFocus && this . hasValue ( ) ) {
323
325
this . _didBlurAfterEdit = true ;
324
326
}
325
327
}
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ export class TextInput extends InputBase {
221
221
}
222
222
223
223
// By default, password inputs clear after focus when they have content
224
- if ( this . type === 'password' && this . clearOnEdit !== false ) {
224
+ if ( this . type === 'password' && this . clearOnEdit !== false ) {
225
225
this . clearOnEdit = true ;
226
226
}
227
227
}
Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ export class NativeInput {
35
35
_change ( ev : any ) {
36
36
this . valueChange . emit ( ev . target . value ) ;
37
37
}
38
-
38
+
39
39
@HostListener ( 'keydown' , [ '$event' ] )
40
40
_keyDown ( ev : any ) {
41
- if ( ev ) {
41
+ if ( ev ) {
42
42
ev . target && this . keydown . emit ( ev . target . value ) ;
43
43
}
44
44
}
You can’t perform that action at this time.
0 commit comments