Skip to content

Commit

Permalink
fix(input): remove type from input min/max (#651)
Browse files Browse the repository at this point in the history
Co-authored-by: Aykut Saraç <aykut.sarac@trendyol.com>
  • Loading branch information
AykutSarac and Aykut Saraç authored Jul 14, 2023
1 parent be21721 commit b2bac5a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/input/bl-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class BlInput extends FormControlMixin(LitElement) {
* Type of the input. It's used to set `type` attribute of native input inside. Only `text`, `number` and `password` is supported for now.
*/
@property({ reflect: true })
type: 'text' | 'password' | 'number' | 'tel' | 'url' = 'text';
type: 'text' | 'date' | 'password' | 'number' | 'tel' | 'url' = 'text';

/**
* Sets label of the input
Expand Down Expand Up @@ -82,16 +82,16 @@ export default class BlInput extends FormControlMixin(LitElement) {
maxlength?: number;

/**
* Sets the smallest number can be entered to a `number` input
* Sets the minimum acceptable value for the input
*/
@property({ type: Number, reflect: true })
min?: number;
@property({ reflect: true })
min?: number | string;

/**
* Sets the biggest number can be entered to a `number` input
* Sets the maximum acceptable value for the input
*/
@property({ type: Number, reflect: true })
max?: number;
@property({ reflect: true })
max?: number | string;

/**
* Sets a regex pattern form the input validation
Expand Down

0 comments on commit b2bac5a

Please sign in to comment.