Skip to content

Commit 4632d91

Browse files
committed
refactor(input): don't make renderFileParts an abstract method
1 parent 7c14ba1 commit 4632d91

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/components/input/input-base.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ export abstract class IgcInputBaseComponent extends FormAssociatedRequiredMixin(
115115
}
116116

117117
protected abstract renderInput(): TemplateResult;
118-
protected abstract renderFileParts(): TemplateResult | typeof nothing;
119118

120119
protected renderValidatorContainer(): TemplateResult {
121120
return IgcValidationContainerComponent.create(this);
@@ -130,6 +129,10 @@ export abstract class IgcInputBaseComponent extends FormAssociatedRequiredMixin(
130129
};
131130
}
132131

132+
protected renderFileParts(): TemplateResult | typeof nothing {
133+
return nothing;
134+
}
135+
133136
/** Sets the text selection range of the control */
134137
public setSelectionRange(
135138
start: number,

src/components/input/input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export default class IgcInputComponent extends IgcInputBaseComponent {
304304
this._validate();
305305
}
306306

307-
protected renderFileParts() {
307+
protected override renderFileParts() {
308308
if (this.type !== 'file') return nothing;
309309

310310
return html`

src/components/mask-input/mask-input.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,6 @@ export default class IgcMaskInputComponent extends IgcMaskInputBaseComponent {
210210
this.value = this.parser.parse(this.maskedValue);
211211
}
212212

213-
protected override renderFileParts(): typeof nothing {
214-
return nothing;
215-
}
216-
217213
protected override renderInput() {
218214
return html`
219215
<input

0 commit comments

Comments
 (0)