Skip to content

Commit cd6b745

Browse files
authored
docs(input-number): deprecate minLength/maxLength props as they have no effect (#8734)
**Related Issue:** N/A ## Summary Deprecates `minLength`/`maxLength` since they have no effect on numeric inputs. We can remove them at a future breaking change release. This stems from #8655 (comment).
1 parent f76f926 commit cd6b745

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/calcite-components/src/components.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,6 +2287,7 @@ export namespace Components {
22872287
/**
22882288
* Specifies the maximum length of text for the component's value.
22892289
* @mdn [maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
2290+
* @deprecated This property has no effect on the component.
22902291
*/
22912292
"maxLength": number;
22922293
/**
@@ -2305,6 +2306,7 @@ export namespace Components {
23052306
/**
23062307
* Specifies the minimum length of text for the component's value.
23072308
* @mdn [minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
2309+
* @deprecated This property has no effect on the component.
23082310
*/
23092311
"minLength": number;
23102312
/**
@@ -9661,6 +9663,7 @@ declare namespace LocalJSX {
96619663
/**
96629664
* Specifies the maximum length of text for the component's value.
96639665
* @mdn [maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
9666+
* @deprecated This property has no effect on the component.
96649667
*/
96659668
"maxLength"?: number;
96669669
/**
@@ -9679,6 +9682,7 @@ declare namespace LocalJSX {
96799682
/**
96809683
* Specifies the minimum length of text for the component's value.
96819684
* @mdn [minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
9685+
* @deprecated This property has no effect on the component.
96829686
*/
96839687
"minLength"?: number;
96849688
/**

packages/calcite-components/src/components/input-number/input-number.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,17 @@ export class InputNumber
202202
* Specifies the maximum length of text for the component's value.
203203
*
204204
* @mdn [maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
205+
*
206+
* @deprecated This property has no effect on the component.
205207
*/
206208
@Prop({ reflect: true }) maxLength: number;
207209

208210
/**
209211
* Specifies the minimum length of text for the component's value.
210212
*
211213
* @mdn [minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
214+
*
215+
* @deprecated This property has no effect on the component.
212216
*/
213217
@Prop({ reflect: true }) minLength: number;
214218

0 commit comments

Comments
 (0)