Skip to content

Commit 0883f98

Browse files
authored
Merge pull request #9200 from ramonornela/fix_lint_input
style(input): fix lints
2 parents cfbc5ea + fa54a4e commit 0883f98

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/components/input/input-base.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ export class InputBase extends Ion {
147147
* @private
148148
*/
149149
checkClearOnEdit(inputValue: string) {
150-
if(!this._clearOnEdit) { return; }
150+
if (!this._clearOnEdit) {
151+
return;
152+
}
151153

152154
// Did the input value change after it was blurred and edited?
153155
if (this._didBlurAfterEdit && this.hasValue()) {
@@ -269,7 +271,7 @@ export class InputBase extends Ion {
269271
* @private
270272
*/
271273
onKeydown(val: any) {
272-
if(this._clearOnEdit) {
274+
if (this._clearOnEdit) {
273275
this.checkClearOnEdit(val);
274276
}
275277
}
@@ -319,7 +321,7 @@ export class InputBase extends Ion {
319321
}
320322

321323
// 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()) {
323325
this._didBlurAfterEdit = true;
324326
}
325327
}

src/components/input/input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export class TextInput extends InputBase {
221221
}
222222

223223
// 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) {
225225
this.clearOnEdit = true;
226226
}
227227
}

src/components/input/native-input.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ export class NativeInput {
3535
_change(ev: any) {
3636
this.valueChange.emit(ev.target.value);
3737
}
38-
38+
3939
@HostListener('keydown', ['$event'])
4040
_keyDown(ev: any) {
41-
if(ev) {
41+
if (ev) {
4242
ev.target && this.keydown.emit(ev.target.value);
4343
}
4444
}

0 commit comments

Comments
 (0)