From b2bac5ae36a7f9bdbabdd5268bda0679cc9eb131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aykut=20Sara=C3=A7?= Date: Fri, 14 Jul 2023 11:00:22 +0300 Subject: [PATCH] fix(input): remove type from input min/max (#651) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Aykut SaraƧ --- src/components/input/bl-input.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/input/bl-input.ts b/src/components/input/bl-input.ts index 92d5eace..71b97ace 100644 --- a/src/components/input/bl-input.ts +++ b/src/components/input/bl-input.ts @@ -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 @@ -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